From 6d6789c4a625ae46762dcd3b26bf673cefbd26c7 Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Thu, 4 Dec 2025 22:55:25 -0500 Subject: [PATCH] Disabled attendance buttons if event end time is past current time to address #55 --- ui/src/components/calendar/ViewCalendarEvent.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/src/components/calendar/ViewCalendarEvent.vue b/ui/src/components/calendar/ViewCalendarEvent.vue index 39be30d..25fac9d 100644 --- a/ui/src/components/calendar/ViewCalendarEvent.vue +++ b/ui/src/components/calendar/ViewCalendarEvent.vue @@ -97,6 +97,12 @@ async function forceReload() { activeEvent.value = await getCalendarEvent(activeEvent.value.id); } +const isPast = computed(() => { + const end = new Date(activeEvent.value.end) + // is current date later than end date + return new Date() < end; +}) + defineExpose({forceReload}) @@ -142,7 +148,7 @@ defineExpose({forceReload}) This event has been cancelled -
+