From 98583a5825ccd2925f932cb107fe5c32b3bf7a23 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 20 Jul 2024 14:17:06 +0200 Subject: [PATCH] chore: simplify force-exit form --- src/components/ftbot/ForceExitForm.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/ftbot/ForceExitForm.vue b/src/components/ftbot/ForceExitForm.vue index 5c2c68b2..151a9994 100644 --- a/src/components/ftbot/ForceExitForm.vue +++ b/src/components/ftbot/ForceExitForm.vue @@ -39,7 +39,6 @@ > (); + +const model = defineModel(); const botStore = useBotStore(); @@ -76,15 +76,6 @@ const checkFormValidity = () => { return valid; }; -const model = computed({ - get() { - return props.modelValue; - }, - set(value: boolean) { - emit('update:modelValue', value); - }, -}); - function handleSubmit() { // Exit when the form isn't valid if (!checkFormValidity()) {