|
|
@ -33,11 +33,13 @@ export class AppComponent implements OnInit {
|
|
|
|
this.router.events.subscribe(() => {
|
|
|
|
this.router.events.subscribe(() => {
|
|
|
|
this.user = this.authService.claims();
|
|
|
|
this.user = this.authService.claims();
|
|
|
|
this.showNav = this.authService.loggedIn();
|
|
|
|
this.showNav = this.authService.loggedIn();
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.user !== null && this.user.name) {
|
|
|
|
if (this.user !== null && this.user.name) {
|
|
|
|
this.jobService.getCachedUpdate().subscribe(x => this.updateAvailable = x);
|
|
|
|
this.jobService.getCachedUpdate().subscribe(x => {
|
|
|
|
}
|
|
|
|
this.updateAvailable = (x === true);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public hasRole(role: string): boolean {
|
|
|
|
public hasRole(role: string): boolean {
|
|
|
|