Merge pull request #3559 from ChantsovaEkaterina/bug/missed-custom-translations-in-labels

Add missed custom translations for key labels
This commit is contained in:
Igor Kulikov 2020-10-12 09:12:42 +03:00 committed by GitHub
commit 48c0c9fd8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {