feat(events): align Update modal with Create; extract shared form fields
- ux: close Update modal immediately on Save; run API in background - fix: remove stale single-instance when converting to repeating - test: adjust EventDisplay expectations - refactor: share form via components/Event/EventFormFields (used by Create/Update)
This commit is contained in:
committed by
Benoit TELLIER
parent
770257c03b
commit
42c953ccf9
@@ -12,7 +12,9 @@ import ICAL from "ical.js";
|
||||
export async function getEvent(event: CalendarEvent, isMaster?: boolean) {
|
||||
const response = await api.get(`dav${event.URL}`);
|
||||
const eventData = await response.text();
|
||||
|
||||
const eventical = ICAL.parse(eventData);
|
||||
|
||||
const eventjson = parseCalendarEvent(
|
||||
eventical[2][1][1],
|
||||
event.color ?? "",
|
||||
|
||||
Reference in New Issue
Block a user