made events open instantly when navigating to a given link
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user