diff --git a/frontend/src/components/Calendar/CalendarEventPanel.vue b/frontend/src/components/Calendar/CalendarEventPanel.vue index d54e70bc..c360f281 100644 --- a/frontend/src/components/Calendar/CalendarEventPanel.vue +++ b/frontend/src/components/Calendar/CalendarEventPanel.vue @@ -635,6 +635,7 @@ function close() { function reset() { Object.assign(_event.value, oldEvent.value) + sync() } function showDiscardChangesModal(action) { @@ -745,4 +746,10 @@ const toOptions = computed(() => { } }) }) + +function updateEvent(_e) { + Object.assign(_event.value, _e) +} + +defineExpose({ updateEvent }) diff --git a/frontend/src/pages/Calendar.vue b/frontend/src/pages/Calendar.vue index abdba850..4c2d8dae 100644 --- a/frontend/src/pages/Calendar.vue +++ b/frontend/src/pages/Calendar.vue @@ -7,9 +7,7 @@