mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
@@ -53,17 +53,6 @@ export class AppComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isLoggedIn(): boolean {
|
|
||||||
this.redirectToLoginPageIfNotLoggedIn();
|
|
||||||
return this.authService.isLoggedIn();
|
|
||||||
}
|
|
||||||
|
|
||||||
redirectToLoginPageIfNotLoggedIn(): void {
|
|
||||||
if (!this.authService.isLoggedIn()) {
|
|
||||||
this.router.navigate(['/login']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
isAPageWithHeaderBar(): boolean {
|
isAPageWithHeaderBar(): boolean {
|
||||||
return location.pathname === '/login' || location.pathname === '/settings';
|
return location.pathname === '/login' || location.pathname === '/settings';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user