From 5144bf2b3742fcc5f96ee0d17227973eaf748c5b Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Mon, 30 Jun 2025 16:14:40 +0200 Subject: [PATCH] Allow shifts without a role Allow a shift to have no role associated with it in order to simplify conflict resolution around situations like a shift being created while the role it was assoiated with was deleted. This also allows for shifts that are freestanding to be created in case having a role doesn't make sense for it. --- components/TableScheduleShiftSlots.vue | 23 +----------- components/TableScheduleShifts.vue | 4 -- components/Timetable.vue | 52 +++++++++++++------------- shared/types/api.ts | 2 +- utils/client-schedule.ts | 6 +-- 5 files changed, 32 insertions(+), 55 deletions(-) diff --git a/components/TableScheduleShiftSlots.vue b/components/TableScheduleShiftSlots.vue index 38ef730..cf367ec 100644 --- a/components/TableScheduleShiftSlots.vue +++ b/components/TableScheduleShiftSlots.vue @@ -39,12 +39,7 @@ v-model="newShiftId" /> - - - + Add at @@ -139,12 +134,7 @@ v-model="newShiftId" /> - - - +