From 00e644292d13109a56919a49c4b0bcefe743812b Mon Sep 17 00:00:00 2001 From: Sean Date: Wed, 17 Jun 2020 11:08:22 +0200 Subject: [PATCH] Use title for amendments if an id does not exist Also some slight head-bar cleanups --- .../amendment-create-wizard.component.ts | 2 +- .../motion-detail.component.html | 34 ++++++++++++------- .../motion-detail.component.scss | 13 ++----- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.ts b/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.ts index c4e0f26b7..64d4f6fb8 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.ts +++ b/client/src/app/site/motions/modules/motion-detail/components/amendment-create-wizard/amendment-create-wizard.component.ts @@ -264,7 +264,7 @@ export class AmendmentCreateWizardComponent extends BaseViewComponent implements }); const newMotionValues = { ...this.contentForm.value, - title: this.translate.instant('Amendment to') + ' ' + this.motion.identifier, + title: this.translate.instant('Amendment to') + ' ' + this.motion.getIdentifierOrTitle(), text: text, // Workaround as 'text' is required from the backend parent_id: this.motion.id, category_id: this.motion.category_id, diff --git a/client/src/app/site/motions/modules/motion-detail/components/motion-detail/motion-detail.component.html b/client/src/app/site/motions/modules/motion-detail/components/motion-detail/motion-detail.component.html index 91b82a0b1..af98eb115 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/motion-detail/motion-detail.component.html +++ b/client/src/app/site/motions/modules/motion-detail/components/motion-detail/motion-detail.component.html @@ -22,17 +22,19 @@ -
+
@@ -464,7 +466,7 @@ {{ 'Amendments' | translate }} -
+
{{ 'Show all changes' | translate }} @@ -534,8 +536,7 @@ mat-button [matMenuTriggerFor]="changeRecoMenu" *ngIf=" - motion && - ((allChangingObjects && allChangingObjects.length) || motion.modified_final_version) + motion && ((allChangingObjects && allChangingObjects.length) || motion.modified_final_version) " > rate_review @@ -888,19 +889,28 @@ [class.line-numbers-outside]="isLineNumberingOutside()" [class.amendment-context]="showAmendmentContext" > -

{{ getAmendmentParagraphLinesTitle(paragraph) }}

+

+ {{ getAmendmentParagraphLinesTitle(paragraph) }} +

+ >
+ diff --git a/client/src/app/site/motions/modules/motion-detail/components/motion-detail/motion-detail.component.scss b/client/src/app/site/motions/modules/motion-detail/components/motion-detail/motion-detail.component.scss index 87e61c8ad..664d1dda5 100644 --- a/client/src/app/site/motions/modules/motion-detail/components/motion-detail/motion-detail.component.scss +++ b/client/src/app/site/motions/modules/motion-detail/components/motion-detail/motion-detail.component.scss @@ -8,18 +8,9 @@ span { margin-bottom: 1em; } -.extra-controls-slot { +.prev-next-motion-controls { div { - padding: 0px; - button { - .mat-button-wrapper { - display: inherit; - } - font-size: 100%; - } - span { - font-size: 80%; - } + display: inherit; } }