mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Properly implement preventDefault
This commit is contained in:
parent
40d0691fd3
commit
4da60605e0
|
@ -8,7 +8,6 @@
|
|||
v-model="loginViewOpen"
|
||||
title="Login to your bot"
|
||||
@ok="handleOk"
|
||||
@hide.prevent
|
||||
>
|
||||
<login ref="loginForm" in-modal :existing-auth="loginInfo" @loginResult="handleLoginResult" />
|
||||
</b-modal>
|
||||
|
@ -32,7 +31,8 @@ const handleLoginResult = (result: boolean) => {
|
|||
loginViewOpen.value = false;
|
||||
}
|
||||
};
|
||||
const handleOk = () => {
|
||||
const handleOk = (evt) => {
|
||||
evt.preventDefault();
|
||||
loginForm.value?.handleSubmit();
|
||||
};
|
||||
const openLoginModal = async (botInfo: AuthStorageWithBotId | undefined = undefined) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user