mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
chore: simplify force-exit form
This commit is contained in:
parent
78001c3b91
commit
98583a5825
|
@ -39,7 +39,6 @@
|
||||||
>
|
>
|
||||||
<BFormSelect
|
<BFormSelect
|
||||||
v-model="ordertype"
|
v-model="ordertype"
|
||||||
class="ms-2"
|
|
||||||
:options="['market', 'limit']"
|
:options="['market', 'limit']"
|
||||||
style="min-width: 7em"
|
style="min-width: 7em"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
@ -62,7 +61,8 @@ const props = defineProps({
|
||||||
},
|
},
|
||||||
modelValue: { required: true, default: false, type: Boolean },
|
modelValue: { required: true, default: false, type: Boolean },
|
||||||
});
|
});
|
||||||
const emit = defineEmits<{ 'update:modelValue': [value: boolean] }>();
|
|
||||||
|
const model = defineModel<boolean>();
|
||||||
|
|
||||||
const botStore = useBotStore();
|
const botStore = useBotStore();
|
||||||
|
|
||||||
|
@ -76,15 +76,6 @@ const checkFormValidity = () => {
|
||||||
return valid;
|
return valid;
|
||||||
};
|
};
|
||||||
|
|
||||||
const model = computed({
|
|
||||||
get() {
|
|
||||||
return props.modelValue;
|
|
||||||
},
|
|
||||||
set(value: boolean) {
|
|
||||||
emit('update:modelValue', value);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
function handleSubmit() {
|
function handleSubmit() {
|
||||||
// Exit when the form isn't valid
|
// Exit when the form isn't valid
|
||||||
if (!checkFormValidity()) {
|
if (!checkFormValidity()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user