From af83540470b712d632a79083214dc3101edd8d9c Mon Sep 17 00:00:00 2001 From: Elblinator <69210919+Elblinator@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:01:32 +0100 Subject: [PATCH] Fix display of amendment from amendment (#4312) --- .../amendment-create-wizard.component.html | 14 +++++++++----- .../amendment-create-wizard.component.scss | 4 ++++ .../amendment-create-wizard.component.ts | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.html b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.html index 1e3495d74f..b716d9a1fd 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.html +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.html @@ -68,15 +68,19 @@

{{ 'New amendment' | translate }}

}
- @if (paragraph.lineFrom >= paragraph.lineTo) { + @let currentParagraphLineFrom = + isAmendmentOfAmendment ? diffedParagraphs[i].lineFrom : paragraph.lineFrom; + @let currentParagraphLineTo = + isAmendmentOfAmendment ? diffedParagraphs[i].lineTo : paragraph.lineTo; + @if (currentParagraphLineFrom >= currentParagraphLineTo) { - {{ 'Line' | translate }} {{ paragraph.lineFrom }}: + {{ 'Line' | translate }} {{ currentParagraphLineFrom }}: } - @if (paragraph.lineFrom < paragraph.lineTo) { + @if (currentParagraphLineFrom < currentParagraphLineTo) { - {{ 'Line' | translate }} {{ paragraph.lineFrom }} - - {{ paragraph.lineTo }}: + {{ 'Line' | translate }} {{ currentParagraphLineFrom }} - + {{ currentParagraphLineTo }}: }
diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.scss b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.scss index f753416445..ef15fd4d99 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.scss +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.scss @@ -25,6 +25,10 @@ } .paragraph-text { flex: 1; + + .insert { + text-decoration: underline !important; + } } } diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts index 7d14f84fff..c7f0e6b060 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts @@ -46,7 +46,7 @@ export class AmendmentCreateWizardComponent extends BaseMeetingComponent impleme /** * determine if we are in the amendment of amendment mode */ - private isAmendmentOfAmendment = false; + public isAmendmentOfAmendment = false; /** * Change recommendation content.