@@ -115,7 +117,7 @@ export default defineComponent({
type: formData.type.value,
color: formData.color.value,
nscdr: formData.nscdr.checked,
- passphrase: formData.passphrase.value,
+ passphrase: formData.passphrase?.value,
};
this.status = "loading";
this.updateActiveCalendarType(updateCalendarType)
diff --git a/src/views/public/calendar/Calendar.vue b/src/views/public/calendar/Calendar.vue
index 0cc8d9d..956a34d 100644
--- a/src/views/public/calendar/Calendar.vue
+++ b/src/views/public/calendar/Calendar.vue
@@ -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)
+ );
+ },
},
});