mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Merge pull request #974 from Alfresco/dev-mromano-973
hide header bar for login page
This commit is contained in:
commit
ed97a737bf
@ -1,6 +1,6 @@
|
|||||||
<!-- Always shows a header, even in smaller screens. -->
|
<!-- Always shows a header, even in smaller screens. -->
|
||||||
<div mdl class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
|
<div mdl class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
|
||||||
<div *ngIf="isLoggedIn()">
|
<div *ngIf="!isLoginPage()">
|
||||||
<header class="mdl-layout__header">
|
<header class="mdl-layout__header">
|
||||||
<div class="mdl-layout__header-row">
|
<div class="mdl-layout__header-row">
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
|
@ -54,6 +54,10 @@ export class AppComponent {
|
|||||||
return this.auth.isLoggedIn();
|
return this.auth.isLoggedIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isLoginPage(): boolean {
|
||||||
|
return location.pathname === '/login' || location.pathname === '/';
|
||||||
|
}
|
||||||
|
|
||||||
onLogout(event) {
|
onLogout(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.auth.logout()
|
this.auth.logout()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user