diff --git a/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.html b/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.html
index e5d006076e..48a1e17044 100644
--- a/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.html
+++ b/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.html
@@ -57,7 +57,7 @@
- {{ getCellClickColumnInfo($index, column) }}
+ {{ getCellClickColumnInfo($index, column) | customTranslate }}
();
if (this.modelValue.config?.datasources[0]?.dataKeys?.length) {
- configuredColumns.push(...this.keysToCellClickColumns(this.modelValue.config.datasources[0].dataKeys));
+ const {
+ displayEntityLabel,
+ displayEntityName,
+ displayEntityType,
+ entityNameColumnTitle,
+ entityLabelColumnTitle
+ } = this.modelValue.config.settings;
+ const displayEntitiesArray = [];
+ if (isDefined(displayEntityName)) {
+ const displayName = entityNameColumnTitle ? entityNameColumnTitle : 'entityName';
+ displayEntitiesArray.push({name: displayName, label: displayName});
+ }
+ if (isDefined(displayEntityLabel)) {
+ const displayLabel = entityLabelColumnTitle ? entityLabelColumnTitle : 'entityLabel';
+ displayEntitiesArray.push({name: displayLabel, label: displayLabel});
+ }
+ if (isDefined(displayEntityType)) {
+ displayEntitiesArray.push({name: 'entityType', label: 'entityType'});
+ }
+ configuredColumns.push(...displayEntitiesArray, ...this.keysToCellClickColumns(this.modelValue.config.datasources[0].dataKeys));
}
if (this.modelValue.config?.alarmSource?.dataKeys?.length) {
configuredColumns.push(...this.keysToCellClickColumns(this.modelValue.config.alarmSource.dataKeys));