From 245b46661af891e3c9cd642bb396ae106f994bea Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sat, 24 Aug 2024 21:38:15 +0200 Subject: [PATCH] Added loading state to create calendar form --- components/calendar/dialog/Create.vue | 6 +++--- components/calendar/form/Create.vue | 26 +++++++++++++++++++++----- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/components/calendar/dialog/Create.vue b/components/calendar/dialog/Create.vue index b50abe2..44c6653 100644 --- a/components/calendar/dialog/Create.vue +++ b/components/calendar/dialog/Create.vue @@ -15,7 +15,7 @@ function onChangedName(newName: string) { const emit = defineEmits(['on-close']) -function handleCancel() { +function handleClose() { emit('on-close') } @@ -34,11 +34,11 @@ function handleCancel() { - + - + diff --git a/components/calendar/form/Create.vue b/components/calendar/form/Create.vue index 2d1ca9d..76578e7 100644 --- a/components/calendar/form/Create.vue +++ b/components/calendar/form/Create.vue @@ -1,6 +1,6 @@ @@ -107,7 +118,12 @@ function handleFormCancel() { Annuler - + + + + + + Créer