From 1f24e19eeccb4d4dec2e09ade89f3008be980f14 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Tue, 17 Jul 2018 08:37:57 +0200 Subject: [PATCH] Fix initial sidebar view on route change --- static/src/app/app.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/static/src/app/app.component.ts b/static/src/app/app.component.ts index 16d6e96..cae031c 100644 --- a/static/src/app/app.component.ts +++ b/static/src/app/app.component.ts @@ -61,12 +61,8 @@ export class AppComponent implements OnInit { this.scrollToTop(); } // show sidebar menu on initial stats page access - if (router.url.includes('/stats')) { - this.showSidebarToggleBtn = true; - this.sidebarOpen = true; - } else { - this.showSidebarToggleBtn = false; - } + this.sidebarOpen = true; + this.showSidebarToggleBtn = router.url.includes('/stats'); } }); }