From 3c9e7b3d027093231ff9b1e92bb1f60a67479bb6 Mon Sep 17 00:00:00 2001 From: rusikv Date: Fri, 3 May 2024 13:33:06 +0300 Subject: [PATCH] UI: added passing of column into handleWidgetAction additionalParams of onCellClick for alarms table widget --- .../widget/lib/alarm/alarms-table-widget.component.html | 2 +- .../widget/lib/alarm/alarms-table-widget.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.html index 71f7debe84..0aca6e05bc 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.html @@ -83,7 +83,7 @@ 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 7d6bc454bd..1d1aa533cd 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 @@ -796,7 +796,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, return res; } - public onCellClick($event: Event, alarm: AlarmDataInfo, columnIndex: number) { + public onCellClick($event: Event, alarm: AlarmDataInfo, key: EntityColumn, columnIndex: number) { this.alarmsDatasource.toggleCurrentAlarm(alarm); const descriptors = this.ctx.actionsApi.getActionDescriptors('cellClick'); let descriptor; @@ -813,7 +813,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, entityName = alarm.entityName; entityLabel = alarm.entityLabel; } - this.ctx.actionsApi.handleWidgetAction($event, descriptor, entityId, entityName, {alarm}, entityLabel); + this.ctx.actionsApi.handleWidgetAction($event, descriptor, entityId, entityName, {alarm, key}, entityLabel); } }