diff --git a/ui/src/components/calendar/ViewCalendarEvent.vue b/ui/src/components/calendar/ViewCalendarEvent.vue index 3f2fb39..aea692d 100644 --- a/ui/src/components/calendar/ViewCalendarEvent.vue +++ b/ui/src/components/calendar/ViewCalendarEvent.vue @@ -31,9 +31,14 @@ watch( { immediate: true } ); +watch(loaded, (value) => { + if (value) emit('load'); +}); + const emit = defineEmits<{ (e: 'close'): void (e: 'reload'): void + (e: 'load'): void (e: 'edit', event: CalendarEvent): void }>() @@ -302,11 +307,14 @@ defineExpose({ forceReload }) -
- - + +
+ \ No newline at end of file diff --git a/ui/src/pages/Calendar.vue b/ui/src/pages/Calendar.vue index 954e316..fa51eec 100644 --- a/ui/src/pages/Calendar.vue +++ b/ui/src/pages/Calendar.vue @@ -211,7 +211,7 @@ onMounted(() => { class="3xl:w-lg 2xl:w-md border-l bg-card text-foreground flex flex-col overflow-auto scrollbar-themed" :style="{ height: 'calc(100vh - 61px)', position: 'sticky', top: '64px' }"> + @reload="loadEvents()" @load="calendarRef.getApi().updateSize()" @edit="(val) => { dialogRef.openDialog(null, 'edit', val) }">