From 189f0eec758fc272a9428caca4ac495ee33adf6e Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sat, 1 Mar 2025 13:19:02 +0100 Subject: [PATCH 1/7] Fixed readOnly status for calendar --- stores/CalendarStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/CalendarStore.ts b/stores/CalendarStore.ts index b76ebcd..b678d44 100644 --- a/stores/CalendarStore.ts +++ b/stores/CalendarStore.ts @@ -52,7 +52,7 @@ export const useCalendar = defineStore("calendar", () => { function setReadStatus(gmId: string) { // If the user is not logged in, or the calendar is not owned by the user, it's read-only - isReadOnly.value = (!user) || (gmId !== user.value?.id) + isReadOnly.value = !user.value || gmId !== user.value.id } /** From ba3eb29e04c46137137c289529f98e8dec715d7e Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sat, 1 Mar 2025 14:14:55 +0100 Subject: [PATCH 2/7] Added world edit subscription And also toast lifetimes --- components/calendar/dialog/Delete.vue | 3 +- components/calendar/form/DeleteEvent.vue | 3 +- components/calendar/form/UpdateEvent.vue | 5 +- components/ui/toast/use-toast.ts | 6 ++ components/world/dialog/Delete.vue | 3 +- components/world/form/Edit.vue | 3 +- pages/my/worlds/[id].vue | 71 +++++++++++++++++++++--- 7 files changed, 80 insertions(+), 14 deletions(-) diff --git a/components/calendar/dialog/Delete.vue b/components/calendar/dialog/Delete.vue index 3d6f4d3..d5b3ae6 100644 --- a/components/calendar/dialog/Delete.vue +++ b/components/calendar/dialog/Delete.vue @@ -1,6 +1,7 @@