Merge pull request #3559 from ChantsovaEkaterina/bug/missed-custom-translations-in-labels
Add missed custom translations for key labels
This commit is contained in:
commit
48c0c9fd8f
@ -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…
x
Reference in New Issue
Block a user