From 9a08ba59b093b8124755d1b9e3e4d69380116700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Mon, 8 Jul 2019 21:39:38 +0200 Subject: [PATCH] Show supporters in motion pdf --- .../motions/services/motion-pdf.service.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/client/src/app/site/motions/services/motion-pdf.service.ts b/client/src/app/site/motions/services/motion-pdf.service.ts index 9569e8fd4..a5adc0234 100644 --- a/client/src/app/site/motions/services/motion-pdf.service.ts +++ b/client/src/app/site/motions/services/motion-pdf.service.ts @@ -254,6 +254,26 @@ export class MotionPdfService { ]); } + // supporters + const minSupporters = this.configService.instant('motions_min_supporters'); + if (minSupporters && motion.supporters.length > 0) { + const supporters = motion.supporters + .map(supporter => { + return supporter.full_name; + }) + .join(', '); + + metaTableBody.push([ + { + text: `${this.translate.instant('Supporters')}:`, + style: 'boldText' + }, + { + text: supporters + } + ]); + } + // state if (!infoToExport || infoToExport.includes('state')) { metaTableBody.push([