mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -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>
|
||||
|
||||
|
||||
<div [ngClass]="{'container top-spacing': showNav}">
|
||||
<div [ngClass]="{'container top-spacing': showNav}" id="{{currentUrl}}">
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
|
@ -19,6 +19,7 @@ export class AppComponent implements OnInit {
|
|||
public user: ILocalUser;
|
||||
public showNav: boolean;
|
||||
public updateAvailable: boolean;
|
||||
public currentUrl: string;
|
||||
|
||||
constructor(public notificationService: NotificationService,
|
||||
public authService: AuthService,
|
||||
|
@ -41,6 +42,7 @@ export class AppComponent implements OnInit {
|
|||
this.settingsService.getCustomization().subscribe(x => this.customizationSettings = x);
|
||||
|
||||
this.router.events.subscribe((event: NavigationStart) => {
|
||||
this.currentUrl = event.url;
|
||||
if (event instanceof NavigationStart) {
|
||||
this.user = this.authService.claims();
|
||||
this.showNav = this.authService.loggedIn();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue