From 535a73162c3b50740c71ca53fcd0343182c36ab1 Mon Sep 17 00:00:00 2001
From: Alexis <35.alexis.pele@gmail.com>
Date: Tue, 17 Dec 2024 17:17:13 +0100
Subject: [PATCH] Added user change validation and read status
This might be better to just refetch the data with anonymous authorizations
---
components/calendar/Calendar.vue | 5 ++---
components/calendar/CalendarEventDetails.vue | 4 ++--
components/calendar/CalendarMenu.vue | 3 ++-
pages/calendars/[id].vue | 5 -----
pages/my/calendars/[id].vue | 3 ---
stores/CalendarStore.ts | 21 ++++++++++++++++----
6 files changed, 23 insertions(+), 18 deletions(-)
diff --git a/components/calendar/Calendar.vue b/components/calendar/Calendar.vue
index 07722ec..445a1ee 100644
--- a/components/calendar/Calendar.vue
+++ b/components/calendar/Calendar.vue
@@ -46,15 +46,14 @@ onMounted(() => {
- {{ isReadOnly }}
-
-
+
+
diff --git a/components/calendar/CalendarEventDetails.vue b/components/calendar/CalendarEventDetails.vue
index 8d8afa7..f2892e5 100644
--- a/components/calendar/CalendarEventDetails.vue
+++ b/components/calendar/CalendarEventDetails.vue
@@ -15,7 +15,7 @@ import {
} from "@phosphor-icons/vue"
const { defaultDate, getFormattedDateTitle, jumpToDate, getRelativeString, revealEditEventModal, revealDeleteEventModal } = useCalendar()
-const { lastActiveEvent } = storeToRefs(useCalendar())
+const { lastActiveEvent, isReadOnly } = storeToRefs(useCalendar())
const props = defineProps<{
event: CalendarEvent
@@ -151,7 +151,7 @@ function deployDeleteModal() {
-