Minor improvements

This commit is contained in:
Igor Kulikov 2022-09-09 09:47:30 +03:00
parent 9f178105cf
commit 6c308f953e
2 changed files with 2 additions and 1 deletions

View File

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

View File

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