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
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user