From 02bb9baea744a5b0a351b7171522c8c57639acf4 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 8 Jan 2018 14:34:17 +0000 Subject: [PATCH] Add more properties needed by react-big-calendar. --- src/pim-types.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pim-types.ts b/src/pim-types.ts index e84a0cf..bac872a 100644 --- a/src/pim-types.ts +++ b/src/pim-types.ts @@ -25,6 +25,14 @@ export class EventType extends ICAL.Event implements PimType { return this.endDate.toJSDate(); } + get allDay() { + return this.startDate.isDate; + } + + get desc() { + return this.description; + } + toIcal() { let comp = new ICAL.Component(['vcalendar', [], []]); comp.updatePropertyWithValue('prodid', '-//iCal.js EteSync Web');