chore: added always visible label to sort, i18n (#5438)

This commit is contained in:
Chris Rodriguez 2020-02-07 17:16:48 +00:00 committed by GitHub
parent c663514538
commit 707b7fe6b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -205,7 +205,8 @@
} }
}, },
"SEARCH": { "SEARCH": {
"TOGGLE_ASC_DESC_ORDER": "Toggle results between ascending and descending order" "TOGGLE_ASC_DESC_ORDER": "Toggle results between ascending and descending order",
"SORT_BY": "Sort by"
} }
}, },
"COMMENTS": { "COMMENTS": {

View File

@ -1,4 +1,5 @@
<mat-form-field> <mat-form-field floatLabel="always">
<mat-label>{{'CORE.SEARCH.SORT_BY' | translate}}</mat-label>
<mat-select [(value)]="selected" (selectionChange)="onOptionChanged($event)"> <mat-select [(value)]="selected" (selectionChange)="onOptionChanged($event)">
<mat-option *ngFor="let option of options" [value]="option.key"> <mat-option *ngFor="let option of options" [value]="option.key">
{{ option.label | translate }} {{ option.label | translate }}