diff --git a/src/front/src/store/calendarStore.js b/src/front/src/store/calendarStore.js index 42065c789..ac37e5d9e 100644 --- a/src/front/src/store/calendarStore.js +++ b/src/front/src/store/calendarStore.js @@ -25,31 +25,6 @@ export const useCalendarStore = defineStore('calendarStore', () => { // Getters const formattedSelectedDate = computed(() => selectedDate.value.toISOString().split('T')[0]); - // const myCalendars = computed(() => { - // const userId = accountStore.user.is_idEmployee; - - // return calendars.value - // .map((calendar) => { - // const isAuthor = calendar.author === userId; - // const participant = calendar.participant.find((p) => p.participant_calendar === userId); - // const isEditor = participant?.editor === true; - - // return { - // calendar, - // isAuthor, - // isEditor, - // hasAccess: isAuthor || isEditor, - // }; - // }) - // .filter(({ hasAccess }) => hasAccess) - // .map(({ calendar, isAuthor, isEditor }) => ({ - // ...calendar, - // isAuthor, - // isEditor, - // visible: !hiddenCalendarIds.value.includes(calendar.id), - // })); - // }); - const myCalendars = computed(() => { const userId = accountStore.user.is_idEmployee; @@ -68,14 +43,6 @@ export const useCalendarStore = defineStore('calendarStore', () => { }); }); - // const subscribedCalendars = computed(() => - // calendars.value - // .filter((e) => e.author !== accountStore.user.is_idEmployee) - // .map((calendar) => ({ - // ...calendar, - // visible: !hiddenCalendarIds.value.includes(calendar.id), - // })), - // ); const subscribedCalendars = computed(() => { const userId = accountStore.user.is_idEmployee;