Skip to content

Commit

Permalink
Add extension submitter to export (#4127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elblinator authored Sep 16, 2024
1 parent 4e6a698 commit bff95b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ export class MotionCsvExportService {
const properties = sortMotionPropertyList([`number`, `title`].concat(contentToExport));
const exportProperties: (CsvColumnDefinitionProperty<ViewMotion> | CsvColumnDefinitionMap<ViewMotion>)[] =
properties.map(option => {
if (option === `recommendation`) {
if (option === `submitters`) {
return {
label: `submitters`,
map: motion => motion.mapSubmittersWithAdditional(s => s.short_name).join(`, `)
};
} else if (option === `recommendation`) {
return {
label: `recommendation`,
map: motion => this.motionService.getExtendedRecommendationLabel(motion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ export class MotionXlsxExportService {
data.push(
...properties.map(property => {
const motionProp = motion[property as keyof ViewMotion];
if (property === `submitters`) {
return motion.mapSubmittersWithAdditional(s => s.short_name).join(`, `);
}
if (property === `speakers`) {
return motion.list_of_speakers && motion.list_of_speakers.waitingSpeakerAmount > 0
? motion.list_of_speakers.waitingSpeakerAmount
Expand Down

0 comments on commit bff95b8

Please sign in to comment.