From eedbf1decb9c3d97a5b927c8d3816112172ce4cb Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Fri, 20 Dec 2024 11:16:41 +0100 Subject: [PATCH] Removed user watcher for now --- stores/CalendarStore.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/stores/CalendarStore.ts b/stores/CalendarStore.ts index 6f07e1d..b76ebcd 100644 --- a/stores/CalendarStore.ts +++ b/stores/CalendarStore.ts @@ -55,13 +55,6 @@ export const useCalendar = defineStore("calendar", () => { isReadOnly.value = (!user) || (gmId !== user.value?.id) } - // Watch for user changes - watch(user, () => { - if (activeCalendar.value) { - setReadStatus(activeCalendar.value.gmId!) - } - }) - /** * Month list (queried from API) */ @@ -80,9 +73,7 @@ export const useCalendar = defineStore("calendar", () => { setDefaultDate(activeCalendar.value.today) selectDate(activeCalendar.value.today) - if (calendarData.world) { - setReadStatus(activeCalendar.value.gmId!) - } + setReadStatus(activeCalendar.value.gmId!) if (!params.day) { params.day = defaultDate.value.day.toString()