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
parent
commit
dd981cd340
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui-ngx/src/app/core/api/widget-subscription.ts

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

@ -1402,6 +1402,7 @@ export class WidgetSubscription implements IWidgetSubscription {
}));
if (datasource.latestDataKeys) {
datasourceDataArray = datasourceDataArray.concat(datasource.latestDataKeys.map((dataKey, latestKeyIndex) => {
dataKey.label = this.ctx.utils.customTranslation(dataKey.label, dataKey.label);
const datasourceData: DatasourceData = {
datasource,
dataKey,

Loading…
Cancel
Save