From 3278ec7f704b245269f03bfee8c33f74ebf367cf Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Wed, 17 Oct 2018 22:21:35 +0300 Subject: [PATCH] check sidenav visibility condition on reload (#728) --- src/app/components/layout/layout.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/components/layout/layout.component.ts b/src/app/components/layout/layout.component.ts index 780f4001c..f6f79ec89 100644 --- a/src/app/components/layout/layout.component.ts +++ b/src/app/components/layout/layout.component.ts @@ -74,6 +74,10 @@ export class LayoutComponent implements OnInit, OnDestroy { ) {} ngOnInit() { + this.hideSidenav = this.hideConditions.some(el => + this.router.routerState.snapshot.url.includes(el) + ); + if (!this.minimizeSidenav) { this.expandedSidenav = this.getSidenavState(); } else {