handle remote events 'isAllDay' and fix cs

This commit is contained in:
2022-06-29 15:29:22 +02:00
parent 849e7158e4
commit adad4313a6
8 changed files with 61 additions and 56 deletions

View File

@@ -34,7 +34,8 @@ export interface CalendarRemote {
id: number;
endDate: DateTime;
startDate: DateTime;
title: string
title: string;
isAllDay: boolean;
}
export type EventInputCalendarRange = EventInput & {

View File

@@ -85,7 +85,7 @@ export const remoteToFullCalendarEvent = (entity: CalendarRemote): EventInput &
title: entity.title,
start: entity.startDate.datetime8601,
end: entity.endDate.datetime8601,
allDay: false,
allDay: entity.isAllDay,
is: 'remote',
};
}