remove settilte on child class

This commit is contained in:
2023-11-30 13:05:46 +01:00
parent 65a027014b
commit 5d8005df44
15 changed files with 23 additions and 30 deletions

View File

@ -29,12 +29,11 @@ async function login()
export default class extends AbstractNonAuthentifiedView {
constructor(params) {
super(params, "/home");
super(params, "Login", "/home");
}
async postInit()
{
this.setTitle("Login");
document.getElementById("button").onclick = login;
}

View File

@ -4,8 +4,7 @@ import AbstractAuthentifiedView from "../AbstractAuthentifiedView.js";
export default class extends AbstractAuthentifiedView
{
constructor(params) {
super(params);
this.setTitle("Logout");
super(params, "Logout");
client.logout();
navigateTo("/login")
}

View File

@ -24,12 +24,11 @@ async function register()
export default class extends AbstractAuthentifiedView {
constructor(params) {
super(params, "/home");
super(params, "Register", "/home");
}
async postInit()
{
this.setTitle("register");
document.getElementById("button").onclick = register;
}