Skip to content

Commit

Permalink
Merge pull request #6 from meet-aniket/#21fn6e5
Browse files Browse the repository at this point in the history
Improved: facilityName should be displayed instead of facilityId in store selection along with Store as label ( #21fn6e5 ).
  • Loading branch information
adityasharma7 authored Feb 25, 2022
2 parents 40899df + f68b5c5 commit e1a0410
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelogs/unreleased/-21fn6e5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 'Changed: facilityId with facilityName and selected-text with value'
ticket_id: "#21fn6e5"
merge_request: 6
author: aniket
type: changed
6 changes: 3 additions & 3 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<!-- Select store -->
<ion-item>
<ion-icon :icon="storefrontOutline" slot="start" />
<ion-label>{{ currentFacility.facilityId ? currentFacility.facilityId : '' }}</ion-label>
<ion-select interface="popover" :placeholder="$t('store name')" :selected-text="currentFacility.facilityId" @ionChange="setFacility($event)">
<ion-select-option v-for="facility in ( userProfile && userProfile.facilities ? userProfile.facilities : [] )" :key="facility.facilityId" :value="facility.facilityId" >{{ facility.facilityId }}</ion-select-option>
<ion-label>{{ $t("Store") }}</ion-label>
<ion-select interface="popover" :placeholder="$t('store name')" :value="currentFacility.facilityId" @ionChange="setFacility($event)">
<ion-select-option v-for="facility in ( userProfile && userProfile.facilities ? userProfile.facilities : [] )" :key="facility.facilityId" :value="facility.facilityId" >{{ facility.name }}</ion-select-option>
</ion-select>
</ion-item>
<!-- OMS information -->
Expand Down

0 comments on commit e1a0410

Please sign in to comment.