Show supporters in motion pdf
This commit is contained in:
parent
6e8aa75162
commit
9a08ba59b0
@ -254,6 +254,26 @@ export class MotionPdfService {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// supporters
|
||||||
|
const minSupporters = this.configService.instant<number>('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
|
// state
|
||||||
if (!infoToExport || infoToExport.includes('state')) {
|
if (!infoToExport || infoToExport.includes('state')) {
|
||||||
metaTableBody.push([
|
metaTableBody.push([
|
||||||
|
Loading…
Reference in New Issue
Block a user