From 6d6789c4a625ae46762dcd3b26bf673cefbd26c7 Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Thu, 4 Dec 2025 22:55:25 -0500 Subject: [PATCH 1/8] 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 -
+
-

Attendance

+
+

Attendance

+ +
+ @click="attendanceTab = 'Alpha'">Alpha {{ attendanceCountsByGroup.Alpha }} + @click="attendanceTab = 'Echo'">Echo {{ attendanceCountsByGroup.Echo }} + @click="attendanceTab = 'Other'">Other {{ attendanceCountsByGroup.Other }}
-- 2.37.3.windows.1 From 09d20fd18f878156d1fe60ef915b24221d302664 Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Fri, 5 Dec 2025 16:16:51 -0500 Subject: [PATCH 6/8] prevented header wiggle when editable value changes --- ui/src/components/calendar/ViewCalendarEvent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/calendar/ViewCalendarEvent.vue b/ui/src/components/calendar/ViewCalendarEvent.vue index ced6a85..34fe5f9 100644 --- a/ui/src/components/calendar/ViewCalendarEvent.vue +++ b/ui/src/components/calendar/ViewCalendarEvent.vue @@ -185,11 +185,11 @@ defineExpose({ forceReload })