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