|
|
@ -934,15 +934,15 @@ export class WidgetConfigComponent extends PageComponent implements OnInit, OnDe |
|
|
entityLabelColumnTitle |
|
|
entityLabelColumnTitle |
|
|
} = this.modelValue.config.settings; |
|
|
} = this.modelValue.config.settings; |
|
|
const displayEntitiesArray = []; |
|
|
const displayEntitiesArray = []; |
|
|
if (isDefined(displayEntityName)) { |
|
|
if (displayEntityName) { |
|
|
const displayName = entityNameColumnTitle ? entityNameColumnTitle : 'entityName'; |
|
|
const displayName = entityNameColumnTitle ? entityNameColumnTitle : 'entityName'; |
|
|
displayEntitiesArray.push({name: displayName, label: displayName}); |
|
|
displayEntitiesArray.push({name: displayName, label: displayName}); |
|
|
} |
|
|
} |
|
|
if (isDefined(displayEntityLabel)) { |
|
|
if (displayEntityLabel) { |
|
|
const displayLabel = entityLabelColumnTitle ? entityLabelColumnTitle : 'entityLabel'; |
|
|
const displayLabel = entityLabelColumnTitle ? entityLabelColumnTitle : 'entityLabel'; |
|
|
displayEntitiesArray.push({name: displayLabel, label: displayLabel}); |
|
|
displayEntitiesArray.push({name: displayLabel, label: displayLabel}); |
|
|
} |
|
|
} |
|
|
if (isDefined(displayEntityType)) { |
|
|
if (displayEntityType) { |
|
|
displayEntitiesArray.push({name: 'entityType', label: 'entityType'}); |
|
|
displayEntitiesArray.push({name: 'entityType', label: 'entityType'}); |
|
|
} |
|
|
} |
|
|
configuredColumns.push(...displayEntitiesArray, ...this.keysToCellClickColumns(this.modelValue.config.datasources[0].dataKeys)); |
|
|
configuredColumns.push(...displayEntitiesArray, ...this.keysToCellClickColumns(this.modelValue.config.datasources[0].dataKeys)); |
|
|
|