Remove option for inline line number PDF

- removes the option to export PDF as inline, since it's not working atm
- motions that would be exported with inline line number would be exported with outside line numbers
This commit is contained in:
Sean Engelhardt 2019-12-02 12:54:27 +01:00
parent 876dd1f7d6
commit d962e55fee
2 changed files with 1 additions and 2 deletions

View File

@ -1352,7 +1352,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>