mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Fix #1762
This commit is contained in:
parent
97b9899fac
commit
7d3495f805
2 changed files with 3 additions and 2 deletions
|
@ -12,10 +12,10 @@
|
||||||
<div *ngIf="customizationSettings">
|
<div *ngIf="customizationSettings">
|
||||||
<div *ngIf="customizationSettings.applicationName; then aplicationNameBlock; else ombiBlock"></div>
|
<div *ngIf="customizationSettings.applicationName; then aplicationNameBlock; else ombiBlock"></div>
|
||||||
<ng-template #aplicationNameBlock>
|
<ng-template #aplicationNameBlock>
|
||||||
<a class="navbar-brand" [routerLink]="['/']">{{customizationSettings.applicationName}}</a>
|
<a class="navbar-brand" [routerLink]="['/search']">{{customizationSettings.applicationName}}</a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template #ombiBlock>
|
<ng-template #ombiBlock>
|
||||||
<a class="navbar-brand" [routerLink]="['/']">Ombi</a>
|
<a class="navbar-brand" [routerLink]="['/search']">Ombi</a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ export class AppComponent implements OnInit {
|
||||||
this.settingsService.getCustomization().subscribe(x => this.customizationSettings = x);
|
this.settingsService.getCustomization().subscribe(x => this.customizationSettings = x);
|
||||||
|
|
||||||
this.router.events.subscribe((event: NavigationStart) => {
|
this.router.events.subscribe((event: NavigationStart) => {
|
||||||
|
console.log(event.url);
|
||||||
this.currentUrl = event.url;
|
this.currentUrl = event.url;
|
||||||
if (event instanceof NavigationStart) {
|
if (event instanceof NavigationStart) {
|
||||||
this.user = this.authService.claims();
|
this.user = this.authService.claims();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue