Skip to content

Commit

Permalink
PT-13514: bind current value directly in ui-select-match (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev authored Sep 14, 2023
1 parent bfceded commit d1ad181
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</label>
<div class="form-input">
<ui-select ng-model="blade.currentEntity.status" ng-disabled="blade.isLocked">
<ui-select-match placeholder="{{ 'orders.blades.customerOrder-detail.placeholders.status' | translate }}">{{$select.selected.value}}</ui-select-match>
<ui-select-match placeholder="{{ 'orders.blades.customerOrder-detail.placeholders.status' | translate }}">{{ blade.currentEntity.status }}</ui-select-match>
<ui-select-choices repeat="x.key as x in blade.statuses | filter: {'value': $select.search}">
<span ng-bind-html="x.value | highlight: $select.search"></span>
</ui-select-choices>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<div class="form-input __inline">
<div class="form-input">
<ui-select ng-model="data.status">
<ui-select-match allow-clear="true" placeholder="{{ 'orders.blades.customerOrder-detail.placeholders.status' | translate }}">{{$select.selected.value}}</ui-select-match>
<ui-select-match allow-clear="true" placeholder="{{ 'orders.blades.customerOrder-detail.placeholders.status' | translate }}">{{data.status}}</ui-select-match>
<ui-select-choices repeat="x.key as x in blade.statuses | filter: {'value': $select.search}">
<span ng-bind-html="x.value | highlight: $select.search"></span>
</ui-select-choices>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</label>
<div class="form-input">
<ui-select ng-model="blade.currentEntity.status" ng-change="blade.currentEntity.paymentStatus = $select.selected.key" ng-disabled="blade.isLocked">
<ui-select-match placeholder="{{ 'orders.blades.payment-detail.placeholders.status' | translate }}">{{$select.selected.value}}</ui-select-match>
<ui-select-match placeholder="{{ 'orders.blades.payment-detail.placeholders.status' | translate }}">{{ blade.currentEntity.status }}</ui-select-match>
<ui-select-choices repeat="x.key as x in blade.statuses | filter: {'value': $select.search}">
<span ng-bind-html="x.value | highlight: $select.search"></span>
</ui-select-choices>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</label>
<div class="form-input">
<ui-select ng-model="blade.currentEntity.status" ng-change="blade.currentEntity.refundStatus = $select.selected.key" ng-disabled="blade.isLocked">
<ui-select-match placeholder="{{ 'orders.blades.refund-details.placeholders.status' | translate }}">{{$select.selected.value}}</ui-select-match>
<ui-select-match placeholder="{{ 'orders.blades.refund-details.placeholders.status' | translate }}">{{ blade.currentEntity.status }}</ui-select-match>
<ui-select-choices repeat="x.key as x in blade.statuses | filter: {'value': $select.search}">
<span ng-bind-html="x.value | highlight: $select.search"></span>
</ui-select-choices>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</label>
<div class="form-input">
<ui-select ng-model="blade.currentEntity.status" ng-disabled="blade.isLocked">
<ui-select-match placeholder="{{ 'orders.blades.shipment-detail.placeholders.status' | translate }}">{{$select.selected.value}}</ui-select-match>
<ui-select-match placeholder="{{ 'orders.blades.shipment-detail.placeholders.status' | translate }}">{{ blade.currentEntity.status }}</ui-select-match>
<ui-select-choices repeat="x.key as x in blade.statuses | filter: {'value': $select.search}">
<span ng-bind-html="x.value | highlight: $select.search"></span>
</ui-select-choices>
Expand Down

0 comments on commit d1ad181

Please sign in to comment.