Browse Source

Minor improvements

pull/7288/head
Igor Kulikov 4 years ago
parent
commit
6c308f953e
  1. 2
      ui-ngx/src/app/modules/home/components/widget/data-key-config.component.html
  2. 1
      ui-ngx/src/assets/locale/locale.constant-en_US.json

2
ui-ngx/src/app/modules/home/components/widget/data-key-config.component.html

@ -66,7 +66,7 @@
<mat-label translate>datakey.aggregation-type</mat-label>
<mat-select formControlName="aggregationType" style="min-width: 150px;">
<mat-option *ngFor="let aggregation of aggregations" [value]="aggregation">
{{ aggregationTypesTranslations.get(aggregationTypes[aggregation]) | translate }}
{{ (aggregation === aggregationTypes.NONE ? 'datakey.latest-value' : aggregationTypesTranslations.get(aggregationTypes[aggregation])) | translate }}
</mat-option>
</mat-select>
<mat-hint>{{ dataKeyFormGroup.get('aggregationType').value ? (dataKeyAggregationTypeHintTranslations.get(aggregationTypes[dataKeyFormGroup.get('aggregationType').value]) | translate) : '' }}</mat-hint>

1
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -1041,6 +1041,7 @@
"time-prev-description": "timestamp of the previous value;",
"prev-orig-value-description": "original previous value;",
"aggregation-type": "Aggregation type",
"latest-value": "Latest value",
"aggregation-type-none-hint": "Take latest value",
"aggregation-type-min-hint": "Take min value",
"aggregation-type-max-hint": "Take max value",

Loading…
Cancel
Save