expirytime finally working
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
<span>Nober Grundbesitz GbR Hausverwaltung</span>
|
||||
<span class="spacer"></span>
|
||||
<span class="gittagversion">GITTAGVERSION</span>
|
||||
<span class="gittagversion" *ngIf="authenticated">Läuft aus in {{expiryTime | async }} Sekunden</span>
|
||||
<a *ngIf="!authenticated" mat-button routerLink="/login">Login</a>
|
||||
<a *ngIf="authenticated" mat-button routerLink="/logout">Logout</a>
|
||||
</mat-toolbar>
|
||||
|
@ -33,6 +33,10 @@ export class NavigationComponent {
|
||||
})
|
||||
}
|
||||
|
||||
get expiryTime(): Observable<number> {
|
||||
return this.tokenService.expiryTime
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.authenticated = this.tokenService.checkAuthenticated()
|
||||
}
|
||||
|
Reference in New Issue
Block a user