From 6e3f128121a0fc7fd5d77be024e7c2dcd851458a Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Tue, 23 Oct 2018 11:35:46 +0300 Subject: [PATCH] check if sidenav should be minimized (#746) --- 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 2498cf768..59925adcf 100644 --- a/src/app/components/layout/layout.component.ts +++ b/src/app/components/layout/layout.component.ts @@ -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 {