Skip to content

Commit

Permalink
fix(stark-ui): change the Multisort component to display the label in…
Browse files Browse the repository at this point in the history
…stead of the name of the column

ISSUES CLOSED: #1397
  • Loading branch information
nicanac committed Sep 18, 2019
1 parent 532259a commit fc47144
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ <h1 mat-dialog-title translate>STARK.MULTI_COLUMN_SORTING.TITLE</h1>
<mat-form-field class="form-field-name">
<mat-select [value]="rule" (selectionChange)="onColumnChange(rule, $event.value)">
<ng-container *ngFor="let ruleOption of rules; trackBy: trackRuleFn">
<mat-option *ngIf="ruleOption == rule || !ruleOption.sortDirection" [value]="ruleOption"
>{{ ruleOption.column.name }}
<mat-option *ngIf="ruleOption == rule || !ruleOption.sortDirection" [value]="ruleOption">
{{ (ruleOption.column.label ? ruleOption.column.label : ruleOption.column.name) | translate }}
</mat-option>
</ng-container>
</mat-select>
Expand Down

0 comments on commit fc47144

Please sign in to comment.