Add motion reco giver to motion PDF

Adds the text from "motion recommendet by"
into the motion PDF for both normal
motions and "StatuteAmendments"
This commit is contained in:
Sean Engelhardt 2019-01-31 10:13:47 +01:00
parent eb21ae0136
commit f22b81d7ad

View File

@ -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'
},
{