Fixed multiple issues in calendar views.

This commit is contained in:
Antoine Nguyen
2025-07-04 18:51:53 +02:00
parent 3cb35d9bf0
commit 28ed74b7ad
7 changed files with 37 additions and 16 deletions
@@ -18,6 +18,7 @@
<EventForm
:info="selectInfo"
:event="selectedEvent"
@refresh-calendar="refreshCalendarEvents"
@close="closeEventForm"
/>
</v-dialog>
@@ -183,9 +184,9 @@ function fetchUserCalendars() {
})
}
function refreshCalendarEvents(calendar) {
function refreshCalendarEvents(calendarPk) {
const fullc = calendarRef.value.getApi()
const evtSource = fullc.getEventSourceById(`user-${calendar.pk}`)
const evtSource = fullc.getEventSourceById(`user-${calendarPk}`)
evtSource.refetch()
}