diff options
Diffstat (limited to 'desktop/island/calendar/EventEditor.qml')
| -rw-r--r-- | desktop/island/calendar/EventEditor.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/island/calendar/EventEditor.qml b/desktop/island/calendar/EventEditor.qml index 63b29f0..7f3ad2a 100644 --- a/desktop/island/calendar/EventEditor.qml +++ b/desktop/island/calendar/EventEditor.qml @@ -65,17 +65,19 @@ Column { } function save() { + if (ed.busy) return; const r = Cal.toPayload(ed.draft); if (r.error) { ed.err = r.error; return; } ed.busy = true; - if (ed.draft.uid) Calendar.update(ed.draft.uid, r.payload, ed.finish); + if (ed.draft.uid) Calendar.update(ed.draft.uid, ed.draft.source, r.payload, ed.finish); else Calendar.create(r.payload, ed.finish); } function remove() { + if (ed.busy) return; if (!ed.confirmDelete) { ed.confirmDelete = true; return; } ed.busy = true; - Calendar.remove(ed.draft.uid, ed.finish); + Calendar.remove(ed.draft.uid, ed.draft.source, ed.finish); } function dayLabel(day) { |
