mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 19:15:15 +00:00
chore: simplify force-exit form
This commit is contained in:
parent
78001c3b91
commit
98583a5825
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user