Consider show-seq-number config during pdf export

If not stated in the export dialog, the sequential
motion number will not be printed in the PDF if the config
option is unset
This commit is contained in:
Sean 2020-11-27 17:09:33 +01:00
parent 96f96f09ee
commit 629ad4ec1f
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];