Browse Source

Add missed custom translations for key labels

pull/3559/head
Chantsova Ekaterina 6 years ago
parent
commit
e2b955299e
  1. 1
      ui-ngx/src/app/core/api/widget-subscription.ts

1
ui-ngx/src/app/core/api/widget-subscription.ts

@ -1241,6 +1241,7 @@ export class WidgetSubscription implements IWidgetSubscription {
return datasource.dataKeys.map((dataKey, keyIndex) => { return datasource.dataKeys.map((dataKey, keyIndex) => {
dataKey.hidden = !!dataKey.settings.hideDataByDefault; dataKey.hidden = !!dataKey.settings.hideDataByDefault;
dataKey.inLegend = !dataKey.settings.removeFromLegend; dataKey.inLegend = !dataKey.settings.removeFromLegend;
dataKey.label = this.ctx.utils.customTranslation(dataKey.label, dataKey.label);
if (this.comparisonEnabled && dataKey.isAdditional && dataKey.settings.comparisonSettings.comparisonValuesLabel) { if (this.comparisonEnabled && dataKey.isAdditional && dataKey.settings.comparisonSettings.comparisonValuesLabel) {
dataKey.label = createLabelFromDatasource(datasource, dataKey.settings.comparisonSettings.comparisonValuesLabel); dataKey.label = createLabelFromDatasource(datasource, dataKey.settings.comparisonSettings.comparisonValuesLabel);
} else { } else {

Loading…
Cancel
Save