mirror of
				https://github.com/richard-loafle/fuse-angular.git
				synced 2025-11-04 11:13:33 +00:00 
			
		
		
		
	Sidenav helper fixes
This commit is contained in:
		
							parent
							
								
									94d9118df7
								
							
						
					
					
						commit
						ed9c024e13
					
				@ -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();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -14,7 +14,7 @@
 | 
			
		||||
 | 
			
		||||
                <!-- LEFT SIDENAV -->
 | 
			
		||||
                <mat-sidenav class="sidenav" position="start" opened="true" mode="side"
 | 
			
		||||
                             fuseMatSidenavHelper="chat-left-sidenav" mat-is-locked-open="gt-md">
 | 
			
		||||
                             fuseMatSidenavHelper="chat-left-sidenav" matIsLockedOpen="gt-md">
 | 
			
		||||
                    <chat-left-sidenav></chat-left-sidenav>
 | 
			
		||||
                </mat-sidenav>
 | 
			
		||||
                <!-- / LEFT SIDENAV -->
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user