mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 14:18:08 +00:00
formatted files
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user