remove settilte on child class
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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")
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user