From 1934bad3eba9eafd380ef82a1475973f64ae1d29 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Tue, 31 Oct 2017 10:06:49 +0300 Subject: [PATCH] Fixes #33: Toolbar navigation bar button should toggle the navigation bar --- .../main/navbar/vertical/navbar-vertical.component.ts | 10 ++++++++++ src/app/main/toolbar/toolbar.component.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/main/navbar/vertical/navbar-vertical.component.ts b/src/app/main/navbar/vertical/navbar-vertical.component.ts index 4141c473..10dca8ad 100644 --- a/src/app/main/navbar/vertical/navbar-vertical.component.ts +++ b/src/app/main/navbar/vertical/navbar-vertical.component.ts @@ -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(); diff --git a/src/app/main/toolbar/toolbar.component.html b/src/app/main/toolbar/toolbar.component.html index 93b1f3ca..940c5f03 100644 --- a/src/app/main/toolbar/toolbar.component.html +++ b/src/app/main/toolbar/toolbar.component.html @@ -7,7 +7,7 @@