diff --git a/src/app/core/components/navigation/navigation.service.ts b/src/app/core/components/navigation/navigation.service.ts index b468ec37..ca22f6ed 100644 --- a/src/app/core/components/navigation/navigation.service.ts +++ b/src/app/core/components/navigation/navigation.service.ts @@ -5,6 +5,7 @@ import { BehaviorSubject } from 'rxjs/BehaviorSubject'; @Injectable() export class FuseNavigationService { + onNavCollapseToggle = new EventEmitter(); onNavCollapseToggled = new EventEmitter(); onNavigationModelChange: BehaviorSubject = new BehaviorSubject({}); navigationModel: NavigationModel; diff --git a/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.ts b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.ts index e4baa861..f215bf6a 100644 --- a/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.ts +++ b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.ts @@ -43,7 +43,7 @@ export class FuseNavVerticalCollapseComponent implements OnInit this.navigationService.onNavCollapseToggled .subscribe( (clickedItem) => { - if ( clickedItem.children ) + if ( clickedItem && clickedItem.children ) { // Check if the clicked item is one // of the children of this item @@ -82,6 +82,7 @@ export class FuseNavVerticalCollapseComponent implements OnInit // Navigation collapse toggled... this.navigationService.onNavCollapseToggled.emit(this.item); + this.navigationService.onNavCollapseToggle.emit(); } /** @@ -95,6 +96,7 @@ export class FuseNavVerticalCollapseComponent implements OnInit } this.isOpen = true; + this.navigationService.onNavCollapseToggle.emit(); } /** @@ -107,6 +109,7 @@ export class FuseNavVerticalCollapseComponent implements OnInit return; } this.isOpen = false; + this.navigationService.onNavCollapseToggle.emit(); } /** diff --git a/src/app/main/content/components-third-party/datatable/ngx-datatable.component.html b/src/app/main/content/components-third-party/datatable/ngx-datatable.component.html index 9a8cda10..d5ba8217 100644 --- a/src/app/main/content/components-third-party/datatable/ngx-datatable.component.html +++ b/src/app/main/content/components-third-party/datatable/ngx-datatable.component.html @@ -1,8 +1,8 @@
-
-
+
+
home chevron_right @@ -11,14 +11,12 @@
ngx-datatable
- + + link + Reference +
diff --git a/src/app/main/content/components/angular-material/angular-material.component.html b/src/app/main/content/components/angular-material/angular-material.component.html index 53eac738..4e97c075 100644 --- a/src/app/main/content/components/angular-material/angular-material.component.html +++ b/src/app/main/content/components/angular-material/angular-material.component.html @@ -1,9 +1,9 @@
-
+
-
+
home chevron_right @@ -14,7 +14,7 @@
{{title}}
- + link Reference diff --git a/src/app/main/content/ui/colors/colors.component.html b/src/app/main/content/ui/colors/colors.component.html index ec3b0082..44048a05 100644 --- a/src/app/main/content/ui/colors/colors.component.html +++ b/src/app/main/content/ui/colors/colors.component.html @@ -1,9 +1,9 @@
-
+
-
+
home chevron_right @@ -12,7 +12,7 @@
Colors
- link diff --git a/src/app/main/content/ui/icons/icons.component.html b/src/app/main/content/ui/icons/icons.component.html index 653b4d82..a34b3312 100644 --- a/src/app/main/content/ui/icons/icons.component.html +++ b/src/app/main/content/ui/icons/icons.component.html @@ -1,9 +1,9 @@
-
+
-
+
home chevron_right @@ -12,7 +12,7 @@
Icons
-
+ link Reference diff --git a/src/app/main/navbar/vertical/navbar-vertical.component.ts b/src/app/main/navbar/vertical/navbar-vertical.component.ts index 71c7b8bf..1c20080b 100644 --- a/src/app/main/navbar/vertical/navbar-vertical.component.ts +++ b/src/app/main/navbar/vertical/navbar-vertical.component.ts @@ -43,8 +43,7 @@ export class FuseNavbarVerticalComponent implements OnInit, OnDestroy { navBarService.setNavBar(this); - this.fuseNavigationService.onNavCollapseToggled.subscribe(() => { - + this.fuseNavigationService.onNavCollapseToggle.subscribe(() => { setTimeout(() => { this.fusePerfectScrollbarDirective.update(); }, 310); diff --git a/src/assets/angular-material-examples/autocomplete-overview/autocomplete-overview-example.html b/src/assets/angular-material-examples/autocomplete-overview/autocomplete-overview-example.html index 78370e44..3af4634f 100644 --- a/src/assets/angular-material-examples/autocomplete-overview/autocomplete-overview-example.html +++ b/src/assets/angular-material-examples/autocomplete-overview/autocomplete-overview-example.html @@ -3,7 +3,7 @@ - + {{ state.name }} | Population: {{state.population}}