add: Abstract class to simplifie the code,
AbstractRedirectView, AbstractAuthentificateView AbstractUnAuthentificateView
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
import { client, navigateTo } from "../../index.js";
|
||||
import AbstractView from "../AbstractView.js";
|
||||
import AbstractAuthentificateView from "../AbstractAuthentificateView.js";
|
||||
|
||||
export default class extends AbstractView
|
||||
export default class extends AbstractAuthentificateView
|
||||
{
|
||||
constructor(params) {
|
||||
super(params);
|
||||
this.setTitle("Logout");
|
||||
if (client.logged)
|
||||
client.logout();
|
||||
client.logout();
|
||||
navigateTo("/login")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user