From fe8ab76aafc0d7350ffe1164d8d04b6a887cb6e9 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Tue, 11 Jun 2024 21:38:47 +0200 Subject: [PATCH] Separated multi and single category component I also disabled secondary categories because they shouldn't be used right now, it adds too much complexity --- components/calendar/form/CreateEvent.vue | 10 ++- components/calendar/form/UpdateEvent.vue | 14 +++- components/calendar/input/EventCategories.vue | 57 ++++++++------- components/calendar/input/EventCategory.vue | 73 +++++++++++++++++++ 4 files changed, 126 insertions(+), 28 deletions(-) create mode 100644 components/calendar/input/EventCategory.vue diff --git a/components/calendar/form/CreateEvent.vue b/components/calendar/form/CreateEvent.vue index c324cd0..755e963 100644 --- a/components/calendar/form/CreateEvent.vue +++ b/components/calendar/form/CreateEvent.vue @@ -142,10 +142,18 @@ function handleCancel() {
- +
+ +
diff --git a/components/calendar/form/UpdateEvent.vue b/components/calendar/form/UpdateEvent.vue index f1a6c60..4e4ac16 100644 --- a/components/calendar/form/UpdateEvent.vue +++ b/components/calendar/form/UpdateEvent.vue @@ -133,10 +133,22 @@ function handleCancel() {
- +
+ +
+ +
diff --git a/components/calendar/input/EventCategories.vue b/components/calendar/input/EventCategories.vue index cdd60e1..cfb4bb9 100644 --- a/components/calendar/input/EventCategories.vue +++ b/components/calendar/input/EventCategories.vue @@ -1,38 +1,26 @@ + +