diff --git a/components/calendar/dialog/Create.vue b/components/calendar/dialog/Create.vue index eacea35..b50abe2 100644 --- a/components/calendar/dialog/Create.vue +++ b/components/calendar/dialog/Create.vue @@ -1,4 +1,5 @@ diff --git a/components/calendar/form/Create.vue b/components/calendar/form/Create.vue index c849ce7..2d1ca9d 100644 --- a/components/calendar/form/Create.vue +++ b/components/calendar/form/Create.vue @@ -12,10 +12,6 @@ onMounted(() => { type FormTabs = 'global' | 'months' | 'today' const activeTab = ref('global') -/** - * === Months list handling === - */ - /** * === Current date === */ @@ -48,13 +44,19 @@ async function handleSubmit() { */ const emit = defineEmits<{ // eslint-disable-next-line no-unused-vars - (e: 'changed-name', calendarName: string): void + (e: 'on-changed-name', calendarName: string): void + // eslint-disable-next-line no-unused-vars + (e: 'on-cancel'): void }>() /** Hook to emit a debounced event for the changed skeleton name */ const handleNameChange = useDebounceFn(() => { - emit('changed-name', calendarSkeleton.value.name) + emit('on-changed-name', calendarSkeleton.value.name) }, 400) + +function handleFormCancel() { + emit('on-cancel') +}