[ADF-2626] small changes on logic based on pr comments

This commit is contained in:
georgiana-roman
2018-05-09 09:42:32 +03:00
parent 6893db0530
commit 448dccf9b9
3 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ export class SidenavLayoutComponent implements OnInit, AfterViewInit, OnDestroy
@Input() hideSidenav = false;
@Input() expandedSidenav = true;
@Output() notify = new EventEmitter();
@Output() expanded = new EventEmitter<boolean>();
@ContentChild(SidenavLayoutHeaderDirective) headerDirective: SidenavLayoutHeaderDirective;
@ContentChild(SidenavLayoutNavigationDirective) navigationDirective: SidenavLayoutNavigationDirective;
@@ -84,7 +84,7 @@ export class SidenavLayoutComponent implements OnInit, AfterViewInit, OnDestroy
this.mediaQueryList.removeListener(this.onMediaQueryChange);
}
toggleMenu(expandedSidenav) {
toggleMenu() {
if (!this.mediaQueryList.matches) {
this.isMenuMinimized = !this.isMenuMinimized;
} else {
@@ -92,7 +92,7 @@ export class SidenavLayoutComponent implements OnInit, AfterViewInit, OnDestroy
}
this.container.toggleMenu();
this.notify.emit((!this.isMenuMinimized).toString());
this.expanded.emit(!this.isMenuMinimized);
}
get isMenuMinimized() {