mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Added the route name as an Id on the container div #1698
This commit is contained in:
parent
874d90d894
commit
33177b9c08
2 changed files with 3 additions and 1 deletions
|
@ -112,6 +112,6 @@
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<div [ngClass]="{'container top-spacing': showNav}">
|
<div [ngClass]="{'container top-spacing': showNav}" id="{{currentUrl}}">
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
</div>
|
</div>
|
|
@ -19,6 +19,7 @@ export class AppComponent implements OnInit {
|
||||||
public user: ILocalUser;
|
public user: ILocalUser;
|
||||||
public showNav: boolean;
|
public showNav: boolean;
|
||||||
public updateAvailable: boolean;
|
public updateAvailable: boolean;
|
||||||
|
public currentUrl: string;
|
||||||
|
|
||||||
constructor(public notificationService: NotificationService,
|
constructor(public notificationService: NotificationService,
|
||||||
public authService: AuthService,
|
public authService: AuthService,
|
||||||
|
@ -41,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) => {
|
||||||
|
this.currentUrl = event.url;
|
||||||
if (event instanceof NavigationStart) {
|
if (event instanceof NavigationStart) {
|
||||||
this.user = this.authService.claims();
|
this.user = this.authService.claims();
|
||||||
this.showNav = this.authService.loggedIn();
|
this.showNav = this.authService.loggedIn();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue