Browse Source
Merge pull request #3559 from ChantsovaEkaterina/bug/missed-custom-translations-in-labels
Add missed custom translations for key labels
pull/3574/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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 { |
|
|
|