Fix showing content of amendments

Fixes an error where the "Show entire motion text" was not giving expected results
This commit is contained in:
Sean Engelhardt 2019-09-24 16:33:48 +02:00
parent 534f2d1835
commit 48321fa2b7
2 changed files with 2 additions and 2 deletions

View File

@ -857,12 +857,11 @@
<section class="text-holder">
<!-- If the array exists, we do not have an error -->
<div *ngIf="motion.diffLines">
<!-- <div class="alert alert-info" *ngIf="getAmendmentParagraphs(showAmendmentContext).length === 0"> -->
<div class="alert alert-info" *ngIf="motion.diffLines.length === 0">
<span translate>No changes at the text.</span>
</div>
<div
*ngFor="let paragraph of motion.diffLines"
*ngFor="let paragraph of getAmendmentParagraphs(showAmendmentContext)"
class="motion-text motion-text-diff amendment-view"
[class.line-numbers-none]="isLineNumberingNone()"
[class.line-numbers-inline]="isLineNumberingInline()"

View File

@ -859,6 +859,7 @@ export class MotionDetailComponent extends BaseViewComponent implements OnInit,
/**
* If `this.motion` is an amendment, this returns the list of all changed paragraphs.
* TODO: Cleanup: repo function could be injected part of the model, to have easier access
*
* @param {boolean} includeUnchanged
* @returns {DiffLinesInParagraph[]}