Fix initial sidebar view on route change

pull/43/head
HardiReady 2018-07-17 08:37:57 +02:00
parent e548d6821c
commit 1f24e19eec
1 changed files with 2 additions and 6 deletions

View File

@ -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.showSidebarToggleBtn = router.url.includes('/stats');
}
});
}