Skip to content

Commit

Permalink
Merge pull request #355 from R-Sourabh/#228-facility-selector-fix
Browse files Browse the repository at this point in the history
Improved: Added a check to the "Change" button in the Facility Switcher(#228)
  • Loading branch information
ymaheshwari1 authored Jan 2, 2025
2 parents b647ee7 + f9b4934 commit 35e4c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DxpFacilitySwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ currentFacility.facilityName }}
<p>{{ currentFacility.facilityId }}</p>
</ion-label>
<ion-button id="open-facility-modal" slot="end" fill="outline" color="dark">{{ $t('Change')}}</ion-button>
<ion-button v-if="facilities?.length > 1" id="open-facility-modal" slot="end" fill="outline" color="dark">{{ $t('Change')}}</ion-button>
</ion-item>
</ion-card>
<!-- Using inline modal(as recommended by ionic), also using it inline as the component inside modal is not getting mounted when using modalController -->
Expand Down

0 comments on commit 35e4c21

Please sign in to comment.