pull/1805/head
tidusjar 7 years ago
parent 97b9899fac
commit 7d3495f805

@ -12,10 +12,10 @@
<div *ngIf="customizationSettings">
<div *ngIf="customizationSettings.applicationName; then aplicationNameBlock; else ombiBlock"></div>
<ng-template #aplicationNameBlock>
<a class="navbar-brand" [routerLink]="['/']">{{customizationSettings.applicationName}}</a>
<a class="navbar-brand" [routerLink]="['/search']">{{customizationSettings.applicationName}}</a>
</ng-template>
<ng-template #ombiBlock>
<a class="navbar-brand" [routerLink]="['/']">Ombi</a>
<a class="navbar-brand" [routerLink]="['/search']">Ombi</a>
</ng-template>
</div>

@ -42,6 +42,7 @@ export class AppComponent implements OnInit {
this.settingsService.getCustomization().subscribe(x => this.customizationSettings = x);
this.router.events.subscribe((event: NavigationStart) => {
console.log(event.url);
this.currentUrl = event.url;
if (event instanceof NavigationStart) {
this.user = this.authService.claims();

Loading…
Cancel
Save