check if sidenav should be minimized (#746)

This commit is contained in:
Cilibiu Bogdan
2018-10-23 11:35:46 +03:00
committed by Suzana Dirla
parent 07703547ec
commit 6e3f128121

View File

@@ -86,6 +86,10 @@ export class LayoutComponent implements OnInit, OnDestroy {
this.router.routerState.snapshot.url.includes(el)
);
this.minimizeSidenav = this.minimizeConditions.some(el =>
this.router.routerState.snapshot.url.includes(el)
);
if (!this.minimizeSidenav) {
this.expandedSidenav = this.getSidenavState();
} else {