From f22b81d7ad71a51107562e8e4d7df1c74f79b6f3 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Thu, 31 Jan 2019 10:13:47 +0100 Subject: [PATCH] Add motion reco giver to motion PDF Adds the text from "motion recommendet by" into the motion PDF for both normal motions and "StatuteAmendments" --- .../app/site/motions/services/motion-pdf.service.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 d48aae026..7e916c50e 100644 --- a/client/src/app/site/motions/services/motion-pdf.service.ts +++ b/client/src/app/site/motions/services/motion-pdf.service.ts @@ -180,9 +180,17 @@ export class MotionPdfService { // recommendation if (motion.recommendation && (!infoToExport || infoToExport.includes('recommendation'))) { + let recommendationByText: string; + + if (motion.isStatuteAmendment()) { + recommendationByText = this.configService.instant('motions_statute_recommendations_by'); + } else { + recommendationByText = this.configService.instant('motions_recommendations_by'); + } + metaTableBody.push([ { - text: `${this.translate.instant('Recommendation')}:`, + text: `${recommendationByText}:`, style: 'boldText' }, {