lang: window title updated

This commit is contained in:
AdrienLSH
2024-02-13 16:14:53 +01:00
parent 8a69664c74
commit 3433740d80
9 changed files with 21 additions and 16 deletions

View File

@ -1,4 +1,3 @@
import { client, lang, navigateTo } from "../../index.js";
import { clear, fill_errors } from "../../utils/formUtils.js";
import AbstractNonAuthenticatedView from "../abstracts/AbstractNonAuthenticatedView.js";
@ -7,7 +6,8 @@ export default class extends AbstractNonAuthenticatedView
{
constructor(params, lastUrlBeforeLogin = '/home')
{
super(params, lang.get('loginWindowTitle', 'Login'), lastUrlBeforeLogin);
super(params, 'loginWindowTitle', lastUrlBeforeLogin);
this.redirect_url = lastUrlBeforeLogin;
this.current_mode = undefined
}
@ -109,6 +109,9 @@ export default class extends AbstractNonAuthenticatedView
let button_text = this.current_mode === "register" ? "registerFormButton" : "loginFormButton";
button.innerText = lang.get(button_text, "ERROR LANG");
this.titleKey = this.current_mode === 'register' ? 'registerWindowTitle' : 'loginWindowTitle';
this.setTitle();
}
/**