Exitform - regular functions

This commit is contained in:
Matthias 2024-01-11 18:56:00 +01:00
parent 364ade1c4c
commit 07b28d98a0

View File

@ -91,7 +91,7 @@ const model = computed({
},
});
const handleSubmit = () => {
function handleSubmit() {
// Exit when the form isn't valid
if (!checkFormValidity()) {
return;
@ -107,17 +107,18 @@ const handleSubmit = () => {
}
botStore.activeBot.forceexit(payload);
model.value = false;
};
const resetForm = () => {
}
function resetForm() {
amount.value = props.trade.amount;
ordertype.value =
botStore.activeBot.botState?.order_types?.force_exit ||
botStore.activeBot.botState?.order_types?.exit ||
'limit';
};
}
const handleEntry = () => {
function handleEntry() {
// Trigger submit handler
handleSubmit();
};
}
</script>