Skip to content

Commit

Permalink
Fix display of amendment from amendment (#4312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elblinator authored Nov 18, 2024
1 parent 0c4ec2a commit af83540
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,19 @@ <h2>{{ 'New amendment' | translate }}</h2>
}
<div class="paragraph-text motion-text">
<div>
@if (paragraph.lineFrom >= paragraph.lineTo) {
@let currentParagraphLineFrom =
isAmendmentOfAmendment ? diffedParagraphs[i].lineFrom : paragraph.lineFrom;
@let currentParagraphLineTo =
isAmendmentOfAmendment ? diffedParagraphs[i].lineTo : paragraph.lineTo;
@if (currentParagraphLineFrom >= currentParagraphLineTo) {
<i class="line-number">
{{ 'Line' | translate }} {{ paragraph.lineFrom }}:
{{ 'Line' | translate }} {{ currentParagraphLineFrom }}:
</i>
}
@if (paragraph.lineFrom < paragraph.lineTo) {
@if (currentParagraphLineFrom < currentParagraphLineTo) {
<i class="line-number">
{{ 'Line' | translate }} {{ paragraph.lineFrom }} -
{{ paragraph.lineTo }}:
{{ 'Line' | translate }} {{ currentParagraphLineFrom }} -
{{ currentParagraphLineTo }}:
</i>
}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
}
.paragraph-text {
flex: 1;

.insert {
text-decoration: underline !important;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit af83540

Please sign in to comment.