Skip to content

Commit f5cf042

Browse files
committed
fix(login): extend error toast duration to 7 seconds
1 parent 938c837 commit f5cf042

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎web/static/src/components/Login.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export default {
203203
if (line.indexOf("Login Failed") !== -1) {
204204
_this.loginLoading = false;
205205
_this.authLoading = false;
206-
toast.error(_this.loginErr);
206+
toast.error(_this.loginErr, { autoClose: 7000 });
207207
return;
208208
}
209209
@@ -228,7 +228,7 @@ export default {
228228
loginWebsocketonerror(e) {
229229
console.log("Login WebSocket connect failed.");
230230
this.loginLoading = false;
231-
toast.error("WebSocket connection failed");
231+
toast.error("WebSocket connection failed", { autoClose: 7000 });
232232
},
233233
is2FAPrompt(line) {
234234
if (typeof line !== "string") return false;

0 commit comments

Comments
 (0)
⌂ 换网址