chore: simplify force-exit form

This commit is contained in:
Matthias 2024-07-20 14:17:06 +02:00
parent 78001c3b91
commit 98583a5825

View File

@ -39,7 +39,6 @@
>
<BFormSelect
v-model="ordertype"
class="ms-2"
:options="['market', 'limit']"
style="min-width: 7em"
size="sm"
@ -62,7 +61,8 @@ const props = defineProps({
},
modelValue: { required: true, default: false, type: Boolean },
});
const emit = defineEmits<{ 'update:modelValue': [value: boolean] }>();
const model = defineModel<boolean>();
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()) {