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

Change display of identical motions #3425

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ <h4>{{ (motion.hasLeadMotion ? 'Identical amendments' : 'Identical motions') | t
[routerLink]="['/', activeMeetingId, 'motions', identicalMotion.sequential_number]"
[state]="{ back: 'true' }"
>
{{ identicalMotion.numberOrTitle }}
{{ identicalMotion.numberOrTitle
}}{{ showIdenticalMotionComma(identicalMotion, motion?.identical_motions) ? ',' : '' }}
jsangmeister marked this conversation as resolved.
Show resolved Hide resolved
</a>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ export class MotionMetaDataComponent extends BaseMotionDetailChildComponent impl
return origin?.canAccess();
}

public showIdenticalMotionComma(identical: ViewMotion, identical_motions: ViewMotion[]): boolean {
return identical_motions.length > 0 && identical.id !== identical_motions[identical_motions.length - 1].id;
}

protected override onAfterSetMotion(previous: ViewMotion, current: ViewMotion): void {
super.onAfterSetMotion(previous, current);
this.updateSupportersSubject();
Expand Down
Loading