Browse Source

fixed displaying of disabled data

pull/14433/head
Maksym Tsymbarov 10 months ago
parent
commit
fc3e7d69d8
  1. 6
      ui-ngx/src/app/modules/home/components/widget/widget-config.component.ts

6
ui-ngx/src/app/modules/home/components/widget/widget-config.component.ts

@ -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));

Loading…
Cancel
Save