mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 12:35:07 +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()
|
openBar()
|
||||||
{
|
{
|
||||||
|
if ( !this.isClosed )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.isClosed = false;
|
this.isClosed = false;
|
||||||
this.updateCssClasses();
|
this.updateCssClasses();
|
||||||
if ( this.media.isActive('lt-lg') )
|
if ( this.media.isActive('lt-lg') )
|
||||||
|
@ -155,6 +160,11 @@ export class FuseNavbarVerticalComponent implements OnInit, OnDestroy
|
||||||
|
|
||||||
closeBar()
|
closeBar()
|
||||||
{
|
{
|
||||||
|
if ( this.isClosed )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.isClosed = true;
|
this.isClosed = true;
|
||||||
this.updateCssClasses();
|
this.updateCssClasses();
|
||||||
this._detachBackdrop();
|
this._detachBackdrop();
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div fxFlex="1 0 auto" fxLayout="row" fxLayoutAlign="start center">
|
<div fxFlex="1 0 auto" fxLayout="row" fxLayoutAlign="start center">
|
||||||
|
|
||||||
<button mat-button class="toggle-button-navbar mat-icon-button"
|
<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>
|
<mat-icon>menu</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user