mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 19:15:15 +00:00
Exitform - regular functions
This commit is contained in:
parent
364ade1c4c
commit
07b28d98a0
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user