change: enable calendar entry details for public

This commit is contained in:
Julian Krauser 2025-01-20 12:43:18 +01:00
parent c40b53b200
commit 5bcb76a60e
3 changed files with 105 additions and 1 deletions

View file

@ -73,6 +73,7 @@ export default defineComponent({
weekText: "KW",
allDaySlot: false,
events: this.formattedItems,
eventClick: this.eventClick,
};
},
},
@ -92,6 +93,12 @@ export default defineComponent({
openLinkModal(e: any) {
this.openModal(markRaw(defineAsyncComponent(() => import("@/components/public/calendar/CalendarLinkModal.vue"))));
},
eventClick(e: any) {
this.openModal(
markRaw(defineAsyncComponent(() => import("@/components/public/calendar/ShowCalendarEntryModal.vue"))),
this.calendars.find((c) => c.id == e.event.id)
);
},
},
});
</script>