fix [P-290]: чистка от комментов
This commit is contained in:
1 parent
bc89809b9b
commit
a36f4a4856
1 file changed
-33
@@ -25,31 +25,6 @@ export const useCalendarStore = defineStore('calendarStore', () => {
|
|||||||
// Getters
|
// Getters
|
||||||
const formattedSelectedDate = computed(() => selectedDate.value.toISOString().split('T')[0]);
|
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 myCalendars = computed(() => {
|
||||||
const userId = accountStore.user.is_idEmployee;
|
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 subscribedCalendars = computed(() => {
|
||||||
const userId = accountStore.user.is_idEmployee;
|
const userId = accountStore.user.is_idEmployee;
|
||||||
|
|||||||
Reference in new issue
Block a user