Skip to content

Commit

Permalink
Merge pull request #471 from amansinghbais/468-sell-online-toggle
Browse files Browse the repository at this point in the history
FIxed: click event triggering even when toggle is disabled (#468)
  • Loading branch information
ymaheshwari1 authored Mar 20, 2024
2 parents 2dcbc23 + acdc01e commit 5627f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
<ion-card-content>
{{ translate("Control whether the store's inventory should be made available for online sales or not.") }}
</ion-card-content>
<ion-item lines="none">
<ion-toggle label-placement="start" :disabled="!hasPermission(Actions.APP_UPDT_ECOM_INV_CONFIG) || !facilityGroupDetails?.facilityGroupId" v-model="isEComInvEnabled" @click.prevent="updateEComInvStatus($event)">{{ translate("Sell online") }}</ion-toggle>
<ion-item lines="none" :disabled="!hasPermission(Actions.APP_UPDT_ECOM_INV_CONFIG) || !facilityGroupDetails?.facilityGroupId">
<ion-toggle label-placement="start" v-model="isEComInvEnabled" @click.prevent="updateEComInvStatus($event)">{{ translate("Sell online") }}</ion-toggle>
</ion-item>
</ion-card>
</section>
Expand Down

0 comments on commit 5627f06

Please sign in to comment.