diff --git a/components/calendar/CalendarEvent.vue b/components/calendar/CalendarEvent.vue index 8abdc39..96b530d 100644 --- a/components/calendar/CalendarEvent.vue +++ b/components/calendar/CalendarEvent.vue @@ -60,6 +60,7 @@ onMounted(() => { class="text-xs px-2 py-1 block w-full text-left rounded-sm focus-visible:bg-red-200" :class=" cn({ + 'italic': event.hidden, 'text-white bg-slate-600 hover:bg-slate-700': !event.category, 'text-white bg-lime-600 hover:bg-lime-700': event.category?.name === 'naissance', 'text-white bg-stone-500 hover:bg-stone-700': event.category?.name === 'mort', diff --git a/components/calendar/CalendarEventDetails.vue b/components/calendar/CalendarEventDetails.vue index 3ae0c96..27013ba 100644 --- a/components/calendar/CalendarEventDetails.vue +++ b/components/calendar/CalendarEventDetails.vue @@ -9,7 +9,8 @@ import { PhHourglassHigh, PhHourglassLow, PhMapPinArea, - PhDotsThreeOutlineVertical + PhDotsThreeOutlineVertical, + PhEye } from '@phosphor-icons/vue' const { defaultDate, getFormattedDateTitle, jumpToDate, getRelativeString } = useCalendar() @@ -189,6 +190,19 @@ function deployDeleteModal() { + + + + + + Évènement privé + + + +

Cet évènement est uniquement visible pour vous

+
+
+
diff --git a/components/calendar/search/lists/EventCallout.vue b/components/calendar/search/lists/EventCallout.vue index 9eef932..85f9a03 100644 --- a/components/calendar/search/lists/EventCallout.vue +++ b/components/calendar/search/lists/EventCallout.vue @@ -3,7 +3,7 @@ import type { RPGDate } from '@/models/Date' import type { CalendarEvent } from '@/models/CalendarEvent' import { useCalendar } from '@/stores/CalendarStore' -import { PhArrowSquareOut, PhHourglassMedium, PhAlarm, PhMapPinArea } from '@phosphor-icons/vue' +import { PhArrowSquareOut, PhHourglassMedium, PhAlarm, PhMapPinArea, PhEye } from '@phosphor-icons/vue' const props = defineProps<{ event: CalendarEvent @@ -27,6 +27,7 @@ const dateDuration: string | null = props.event.endDate