made events open instantly when navigating to a given link

This commit is contained in:
2025-11-26 09:33:43 -05:00
parent de84b0d849
commit 4dc121c018

View File

@@ -124,6 +124,7 @@ const calendarOptions = ref({
calendarOptions.value.datesSet = onDatesSet
watch(() => route.params.id, async (newID) => {
console.log(newID)
if (newID === undefined) {
panelOpen.value = false;
currentEventID.value = null;
@@ -131,7 +132,7 @@ watch(() => route.params.id, async (newID) => {
panelOpen.value = true;
currentEventID.value = Number(newID);
}
})
}, { immediate: true })
watch(panelOpen, async () => {