Browse Source

UI: Fix home active component changed raise condition

pull/8247/head
Igor Kulikov 4 years ago
parent
commit
18d04cfd2a
  1. 2
      ui-ngx/src/app/modules/home/home.component.ts

2
ui-ngx/src/app/modules/home/home.component.ts

@ -124,6 +124,7 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni
} }
activeComponentChanged(activeComponent: any) { activeComponentChanged(activeComponent: any) {
this.activeComponentService.setCurrentActiveComponent(activeComponent);
if (!this.activeComponent) { if (!this.activeComponent) {
setTimeout(() => { setTimeout(() => {
this.updateActiveComponent(activeComponent); this.updateActiveComponent(activeComponent);
@ -138,7 +139,6 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni
this.searchText = ''; this.searchText = '';
this.activeComponent = activeComponent; this.activeComponent = activeComponent;
this.hideLoadingBar = activeComponent && activeComponent instanceof RouterTabsComponent; this.hideLoadingBar = activeComponent && activeComponent instanceof RouterTabsComponent;
this.activeComponentService.setCurrentActiveComponent(activeComponent);
if (this.activeComponent && instanceOfSearchableComponent(this.activeComponent)) { if (this.activeComponent && instanceOfSearchableComponent(this.activeComponent)) {
this.searchEnabled = true; this.searchEnabled = true;
this.searchableComponent = this.activeComponent; this.searchableComponent = this.activeComponent;

Loading…
Cancel
Save