From 18d04cfd2a0ebf675119274c661bd5f4082b88c7 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 14 Mar 2023 13:37:09 +0200 Subject: [PATCH] UI: Fix home active component changed raise condition --- ui-ngx/src/app/modules/home/home.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/home.component.ts b/ui-ngx/src/app/modules/home/home.component.ts index e4e8e2f933..6e045b9786 100644 --- a/ui-ngx/src/app/modules/home/home.component.ts +++ b/ui-ngx/src/app/modules/home/home.component.ts @@ -124,6 +124,7 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni } activeComponentChanged(activeComponent: any) { + this.activeComponentService.setCurrentActiveComponent(activeComponent); if (!this.activeComponent) { setTimeout(() => { this.updateActiveComponent(activeComponent); @@ -138,7 +139,6 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni this.searchText = ''; this.activeComponent = activeComponent; this.hideLoadingBar = activeComponent && activeComponent instanceof RouterTabsComponent; - this.activeComponentService.setCurrentActiveComponent(activeComponent); if (this.activeComponent && instanceOfSearchableComponent(this.activeComponent)) { this.searchEnabled = true; this.searchableComponent = this.activeComponent;