Browse Source
Merge pull request #8012 from ChantsovaEkaterina/bug/custom-translation-for-latest-keys-in-timeseries-not-applied
Fixed applying custom translation to labels of latest data keys in timeseries widgets
pull/8031/head
Igor Kulikov
4 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
|
|
@ -1402,6 +1402,7 @@ export class WidgetSubscription implements IWidgetSubscription { |
|
|
})); |
|
|
})); |
|
|
if (datasource.latestDataKeys) { |
|
|
if (datasource.latestDataKeys) { |
|
|
datasourceDataArray = datasourceDataArray.concat(datasource.latestDataKeys.map((dataKey, latestKeyIndex) => { |
|
|
datasourceDataArray = datasourceDataArray.concat(datasource.latestDataKeys.map((dataKey, latestKeyIndex) => { |
|
|
|
|
|
dataKey.label = this.ctx.utils.customTranslation(dataKey.label, dataKey.label); |
|
|
const datasourceData: DatasourceData = { |
|
|
const datasourceData: DatasourceData = { |
|
|
datasource, |
|
|
datasource, |
|
|
dataKey, |
|
|
dataKey, |
|
|
|