Added a Notificatio n15 min before the Calender Event
This commit is contained in:
1 parent
bffc8fbd1a
commit
ae3384bd71
1 file changed
+9
@@ -37,6 +37,15 @@ function toIcsEvent(event: StoredCalendarEvent): string {
|
|||||||
`DESCRIPTION:${escapeIcs(formatEventDetails(event).join('\n'))}`,
|
`DESCRIPTION:${escapeIcs(formatEventDetails(event).join('\n'))}`,
|
||||||
...(event.location ? [`LOCATION:${escapeIcs(event.location)}`] : []),
|
...(event.location ? [`LOCATION:${escapeIcs(event.location)}`] : []),
|
||||||
...(event.url ? [`URL:${escapeIcs(event.url)}`] : []),
|
...(event.url ? [`URL:${escapeIcs(event.url)}`] : []),
|
||||||
|
...(event.status === 'confirmed'
|
||||||
|
? [
|
||||||
|
'BEGIN:VALARM',
|
||||||
|
'ACTION:DISPLAY',
|
||||||
|
'DESCRIPTION:Notification',
|
||||||
|
'TRIGGER:-PT15M',
|
||||||
|
'END:VALARM',
|
||||||
|
]
|
||||||
|
: []),
|
||||||
'END:VEVENT',
|
'END:VEVENT',
|
||||||
].join('\r\n');
|
].join('\r\n');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user