Merge pull request #4220 from tsiegleauq/rec-giver-in-pdf

Add motion reco giver to motion PDF
This commit is contained in:
Emanuel Schütze 2019-01-31 11:53:26 +01:00 committed by GitHub
commit 8cbcd6a5b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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