From 68dc5955235e16cdb97afae62238a2d067d5dd46 Mon Sep 17 00:00:00 2001 From: pa Date: Thu, 5 Dec 2024 19:37:29 +0900 Subject: [PATCH] Fix character input prompt on login button click (#1007) --- html/src/classes/apiLogin.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/html/src/classes/apiLogin.js b/html/src/classes/apiLogin.js index e5834c37..9f82a37e 100644 --- a/html/src/classes/apiLogin.js +++ b/html/src/classes/apiLogin.js @@ -374,14 +374,7 @@ export default class extends baseClass { .saveCredentials, cipher: pwd }).then(() => { - this.loginForm.username = - ''; - this.loginForm.password = - ''; - this.loginForm.endpoint = - ''; - this.loginForm.websocket = - ''; + this.$refs.loginForm.resetFields(); }); }); }); @@ -399,10 +392,7 @@ export default class extends baseClass { saveCredentials: this.loginForm.saveCredentials }) .then(() => { - this.loginForm.username = ''; - this.loginForm.password = ''; - this.loginForm.endpoint = ''; - this.loginForm.websocket = ''; + this.$refs.loginForm.resetFields(); }) .finally(() => { this.loginForm.loading = false;