From 33177b9c084fe785f2e86b741aca2d172bce3905 Mon Sep 17 00:00:00 2001 From: Jamie Date: Thu, 9 Nov 2017 15:29:32 +0000 Subject: [PATCH] Added the route name as an Id on the container div #1698 --- src/Ombi/ClientApp/app/app.component.html | 2 +- src/Ombi/ClientApp/app/app.component.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ombi/ClientApp/app/app.component.html b/src/Ombi/ClientApp/app/app.component.html index dd9402ac3..e56153b1a 100644 --- a/src/Ombi/ClientApp/app/app.component.html +++ b/src/Ombi/ClientApp/app/app.component.html @@ -112,6 +112,6 @@ -
+
\ No newline at end of file diff --git a/src/Ombi/ClientApp/app/app.component.ts b/src/Ombi/ClientApp/app/app.component.ts index 4229ac7de..1c69d6c6c 100644 --- a/src/Ombi/ClientApp/app/app.component.ts +++ b/src/Ombi/ClientApp/app/app.component.ts @@ -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();