From b0d5cdf791dde26c046c814dba0a8b55b8d04381 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 27 Jun 2025 18:59:23 +0200 Subject: [PATCH] Refactor slot editing to use searchable selections Instead of having to type in exactly the name of events or shifts and then hope you remembered it right, replace these interactions with the custom select component that gives a complete list of the available choices and allows quickly searching for the right one. --- components/TableScheduleEventSlots.vue | 165 +++++++++---------------- components/TableScheduleEvents.vue | 3 +- components/TableScheduleShiftSlots.vue | 146 +++++++++------------- components/TableScheduleShifts.vue | 26 ++-- 4 files changed, 125 insertions(+), 215 deletions(-) diff --git a/components/TableScheduleEventSlots.vue b/components/TableScheduleEventSlots.vue index 8de0988..ea9bde9 100644 --- a/components/TableScheduleEventSlots.vue +++ b/components/TableScheduleEventSlots.vue @@ -7,7 +7,6 @@ end duration event - s location assigned @@ -19,7 +18,7 @@ v-for="es in eventSlots" :key='es.slot?.id ?? es.start.toMillis()' :class='{ - removed: es.type === "slot" && es.deleted, + removed: es.type === "slot" && es.slot.deleted, gap: es.type === "gap", }' > @@ -35,23 +34,16 @@ > - + - - + @@ -89,34 +81,27 @@ > - - - {{ status(es) }} - - + - + + + @@ -148,12 +133,17 @@ > - + + + + - @@ -149,12 +134,18 @@ > - + - + + + +