Merge pull request #5150 from tsiegleauq/no-export-inline-numbers

Remove option for inline line number PDF
This commit is contained in:
Emanuel Schütze 2019-12-02 15:44:42 +01:00 committed by GitHub
commit 2c120dd67c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -1350,7 +1350,7 @@ export class MotionDetailComponent extends BaseViewComponent implements OnInit,
*/
public onDownloadPdf(): void {
this.pdfExport.exportSingleMotion(this.motion, {
lnMode: this.lnMode,
lnMode: this.lnMode === this.LineNumberingMode.Inside ? this.LineNumberingMode.Outside : this.lnMode,
crMode: this.crMode,
comments: this.motion.commentSectionIds.concat([PERSONAL_NOTE_ID]) // export all comment fields as well as personal note
});

View File

@ -16,7 +16,6 @@
<p class="toggle-group-head" translate>Line numbering</p>
<mat-button-toggle-group class="smaller-buttons" formControlName="lnMode">
<mat-button-toggle [value]="lnMode.None"> <span translate>None</span> </mat-button-toggle>
<mat-button-toggle [value]="lnMode.Inside"> <span translate>Inline</span> </mat-button-toggle>
<mat-button-toggle [value]="lnMode.Outside"> <span translate>Outside</span> </mat-button-toggle>
</mat-button-toggle-group>
</div>