formatted files

This commit is contained in:
Fran Jurmanović
2021-06-11 19:06:43 +02:00
parent 47f6207798
commit 130246ca88
70 changed files with 3281 additions and 21038 deletions

View File

@@ -1,20 +1,20 @@
import { controller } from "@github/catalyst";
import { AuthService } from "services/";
import { BasePageElement } from "common/";
import { controller } from '@github/catalyst';
import { AuthService } from 'services/';
import { BasePageElement } from 'common/';
@controller
class LogoutPageElement extends BasePageElement {
authService: AuthService;
constructor() {
super({
title: "Logout",
});
}
elementConnected = (): void => {
this.authService = new AuthService(this.appMain.appService);
this.appMain?.authStore?.userLogout();
this.appMain?.routerService.goTo("/login");
};
authService: AuthService;
constructor() {
super({
title: 'Logout',
});
}
elementConnected = (): void => {
this.authService = new AuthService(this.appMain.appService);
this.appMain?.authStore?.userLogout();
this.appMain?.routerService.goTo('/login');
};
}
export type { LogoutPageElement };