Merge pull request #5480 from tsiegleauq/amendment-without-parent-motion

Detect if the parent motion was deleted
This commit is contained in:
Emanuel Schütze 2020-07-17 16:55:47 +02:00 committed by GitHub
commit 23ae32a758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -878,9 +878,10 @@
<!-- If the array exists, we do not have an error --> <!-- If the array exists, we do not have an error -->
<div *ngIf="motion.diffLines"> <div *ngIf="motion.diffLines">
<div class="alert alert-info" *ngIf="motion.diffLines.length === 0"> <div class="alert alert-info" *ngIf="motion.diffLines.length === 0">
<span>{{ 'No changes at the text.' | translate }}</span> <i *ngIf="motion.parent">{{ 'No changes at the text.' | translate }}</i>
<i *ngIf="!motion.parent">{{ 'The parent motion was deleted' | translate }}</i>
</div> </div>
<ng-container *ngIf="!isRecoMode(ChangeRecoMode.Diff) && !isFinalEdit"> <ng-container *ngIf="motion.parent && !isRecoMode(ChangeRecoMode.Diff) && !isFinalEdit">
<div <div
*ngFor="let paragraph of getAmendmentParagraphs()" *ngFor="let paragraph of getAmendmentParagraphs()"
class="motion-text motion-text-diff amendment-view" class="motion-text motion-text-diff amendment-view"