From 0432786592a9f527542c1e9086b7df7c06f1f09c Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Fri, 1 Mar 2024 00:30:20 +0100 Subject: [PATCH] fix(frontend): Add missing iCal fields --- .../src/app/poll/choose-events/choose-events.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/app/poll/choose-events/choose-events.component.ts b/apps/frontend/src/app/poll/choose-events/choose-events.component.ts index 711693d3..97478a10 100644 --- a/apps/frontend/src/app/poll/choose-events/choose-events.component.ts +++ b/apps/frontend/src/app/poll/choose-events/choose-events.component.ts @@ -156,9 +156,11 @@ export class ChooseEventsComponent implements OnInit { } const calendar = new ICalCalendar({ - name: 'my first iCal', - method: ICalCalendarMethod.REQUEST, + name: poll.title, + description: poll.description, + url: this.url, timezone: poll.timeZone, + method: ICalCalendarMethod.REQUEST, }); for (const event of pollEvents) { @@ -179,6 +181,8 @@ export class ChooseEventsComponent implements OnInit { description += `\n\nParticipants:\n${eventParticipants.map(p => `- ${p.name} (${p.selection[event._id]})`).join('\n')}`; calendar.createEvent({ + id: event._id, + timezone: poll.timeZone, start: new Date(event.start), end: new Date(event.end), summary,