check sidenav visibility condition on reload (#728)

This commit is contained in:
Cilibiu Bogdan
2018-10-17 22:21:35 +03:00
committed by Denys Vuika
parent 2cb5a48f8f
commit 3278ec7f70

View File

@@ -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 {