diff --git a/src/@fuse/directives/fuse-mat-sidenav/fuse-mat-sidenav.directive.ts b/src/@fuse/directives/fuse-mat-sidenav/fuse-mat-sidenav.directive.ts index 5e4f189d..403fd413 100644 --- a/src/@fuse/directives/fuse-mat-sidenav/fuse-mat-sidenav.directive.ts +++ b/src/@fuse/directives/fuse-mat-sidenav/fuse-mat-sidenav.directive.ts @@ -16,7 +16,7 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy isLockedOpen: boolean; @Input() - id: string; + fuseMatSidenavHelper: string; @Input() matIsLockedOpen: string; @@ -56,7 +56,7 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy ngOnInit(): void { // Register the sidenav to the service - this._fuseMatSidenavHelperService.setSidenav(this.id, this._matSidenav); + this._fuseMatSidenavHelperService.setSidenav(this.fuseMatSidenavHelper, this._matSidenav); if ( this._observableMedia.isActive(this.matIsLockedOpen) ) { @@ -106,7 +106,7 @@ export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy export class FuseMatSidenavTogglerDirective { @Input() - id: string; + fuseMatSidenavToggler: string; /** * Constructor @@ -128,6 +128,6 @@ export class FuseMatSidenavTogglerDirective @HostListener('click') onClick(): void { - this._fuseMatSidenavHelperService.getSidenav(this.id).toggle(); + this._fuseMatSidenavHelperService.getSidenav(this.fuseMatSidenavToggler).toggle(); } } diff --git a/src/app/main/apps/chat/chat.component.html b/src/app/main/apps/chat/chat.component.html index eca635b2..01208de1 100644 --- a/src/app/main/apps/chat/chat.component.html +++ b/src/app/main/apps/chat/chat.component.html @@ -14,7 +14,7 @@ + fuseMatSidenavHelper="chat-left-sidenav" matIsLockedOpen="gt-md">