From e5da98003f42cbbad9b170666c35407f266aba04 Mon Sep 17 00:00:00 2001 From: rusikv Date: Wed, 20 Mar 2024 12:59:06 +0200 Subject: [PATCH] UI: disabled hiding of title panel for alarm table widget in text search mode --- .../widget/lib/alarm/alarms-table-widget.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.ts index 266b3347ac..b0a8fafd08 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.ts @@ -322,7 +322,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, } public onEditModeChanged() { - if (this.enableSelection && this.alarmsDatasource.selection.hasValue()) { + if (this.textSearchMode || this.enableSelection && this.alarmsDatasource.selection.hasValue()) { this.ctx.hideTitlePanel = !this.ctx.isEdit; this.ctx.detectChanges(true); } @@ -494,7 +494,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, this.alarmsDatasource = new AlarmsDatasource(this.subscription, latestDataKeys, this.ngZone, this.ctx, actionCellDescriptors); if (this.enableSelection) { this.alarmsDatasource.selectionModeChanged$.subscribe((selectionMode) => { - const hideTitlePanel = selectionMode || this.textSearchMode; + const hideTitlePanel = selectionMode || this.textSearchMode && !this.ctx.isEdit; if (this.ctx.hideTitlePanel !== hideTitlePanel) { this.ctx.hideTitlePanel = hideTitlePanel; this.ctx.detectChanges(true);