Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix display of amendment from amendment #4312

Merged
merged 5 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
Comment on lines +28 to +31
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmh, I haven't found the usage of this. Is this debug code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the missing underline if the previous amendment created a completely new paragraph
So no debug code :D

}
}

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