UI: Only clear errors on successful login

This commit is contained in:
Max Berger
2026-04-16 22:57:18 +02:00
parent 17e461cd82
commit 3866a648e7
2 changed files with 31 additions and 1 deletions

View File

@@ -90,6 +90,8 @@ export class LoginScene {
this._errorHandler.setError(error1);
pop_scene();
} else if (principal_collection) {
// clear error on successful login
this._errorHandler.clearError();
// show collections
let saved_user = this._user;
this._user = "";
@@ -145,7 +147,6 @@ export class LoginScene {
}
show() {
this._errorHandler.clearError();
this._remove_logout();
this._fill_form();
this._form.onsubmit = () => this._onlogin();