mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
Fixes #33: Toolbar navigation bar button should toggle the navigation bar
This commit is contained in:
parent
ee29f20304
commit
1934bad3eb
|
@ -145,6 +145,11 @@ export class FuseNavbarVerticalComponent implements OnInit, OnDestroy
|
|||
|
||||
openBar()
|
||||
{
|
||||
if ( !this.isClosed )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.isClosed = false;
|
||||
this.updateCssClasses();
|
||||
if ( this.media.isActive('lt-lg') )
|
||||
|
@ -155,6 +160,11 @@ export class FuseNavbarVerticalComponent implements OnInit, OnDestroy
|
|||
|
||||
closeBar()
|
||||
{
|
||||
if ( this.isClosed )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.isClosed = true;
|
||||
this.updateCssClasses();
|
||||
this._detachBackdrop();
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div fxFlex="1 0 auto" fxLayout="row" fxLayoutAlign="start center">
|
||||
|
||||
<button mat-button class="toggle-button-navbar mat-icon-button"
|
||||
fuseNavbarVertical="openBar" fxHide.gt-md>
|
||||
fuseNavbarVertical="toggleBar" fxHide.gt-md>
|
||||
<mat-icon>menu</mat-icon>
|
||||
</button>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user