Merge pull request #5736 from tsiegleauq/hide-motion-id-in-pdf

Consider show-seq-number config during pdf export
This commit is contained in:
Emanuel Schütze 2020-12-03 11:59:46 +01:00 committed by GitHub
commit 00b148edbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,8 @@ export class MotionPdfService {
}
const title = this.createTitle(motion, crMode, lineLength);
const sequential = !infoToExport || infoToExport.includes('id');
const sequential =
infoToExport?.includes('id') ?? this.configService.instant<boolean>('motions_show_sequential_numbers');
const subtitle = this.createSubtitle(motion, sequential);
motionPdfContent = [title, subtitle];