Skip to content

Commit

Permalink
Improved: added 'groups' label and its translation in group type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritika-Patel08 committed Jan 8, 2024
1 parent 0cde687 commit 1a8c3bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"Group": "Group",
"Group associated to system group types.": "Group associated to system group types.",
"Group unlinked from facility": "Group unlinked from facility",
"groups": "{count} groups",
"Groups": "Groups",
"group description": "group description",
"Group description updated.": "Group description updated.",
Expand Down
2 changes: 1 addition & 1 deletion src/views/FindGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ion-label>
{{ groupType.description ? groupType.description : groupType.facilityGroupTypeId }}
</ion-label>
<ion-select v-if="groups.length" :placeholder="translate('Select')" :selectedText="getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId).length > 1 ? getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId).length : getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId)[0]" :value="getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId)" @ionChange="updateFacilityGroupAssociation($event, getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId), groupType.facilityGroupTypeId)" :multiple="true">
<ion-select v-if="groups.length" :placeholder="translate('Select')" :selectedText="getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId).length > 1 ? translate('groups', {count:getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId).length}) : getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId)[0]" :value="getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId)" @ionChange="updateFacilityGroupAssociation($event, getAssociatedFacilityGroupIds(groupType.facilityGroupTypeId), groupType.facilityGroupTypeId)" :multiple="true">
<ion-select-option :value="group.facilityGroupId" :disabled="group.facilityGroupTypeId && group.facilityGroupTypeId !== groupType.facilityGroupTypeId" :key="group.facilityGroupId" v-for="group in groups">
{{ group.facilityGroupName ? group.facilityGroupName : group.facilityGroupId }}
</ion-select-option>
Expand Down

0 comments on commit 1a8c3bb

Please sign in to comment.