Skip to content

Commit

Permalink
Improved: modals and variables name for maintaining the consistency (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Jun 5, 2024
1 parent f3584bf commit 64652c9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
File renamed without changes.
29 changes: 15 additions & 14 deletions src/views/ShopifyConnectionDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ion-title>{{ "<shopifyShopName>" }}</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<main>
<div class="connection-info">
Expand Down Expand Up @@ -389,7 +390,7 @@

<ion-item lines="full">
<ion-label>{{ "<productType>" }}</ion-label>
<ion-button slot="end" fill="clear" @Click="openDataMappingsLinkActionPopover($event)">
<ion-button slot="end" fill="clear" @Click="openDataMappingLinkActionsPopover($event)">
<ion-icon :icon="linkOutline" slot="icon-only" />
</ion-button>
</ion-item>
Expand Down Expand Up @@ -428,7 +429,7 @@
</div>

<div class="tablet">
<ion-chip outline @click="openAddShippingMethodModal()">
<ion-chip outline @click="openAddShippingMethodsModal()">
<ion-icon :icon="addCircleOutline" />
<ion-label>{{ translate("Map with Hotwax") }}</ion-label>
</ion-chip>
Expand Down Expand Up @@ -460,8 +461,8 @@ import { ref } from "vue";
import ImportShopifyLocationsModal from "@/components/ImportShopifyLocationsModal.vue";
import ImportShippingMethodsModal from "@/components/ImportShippingMethodsModal.vue";
import ShippingMethodActionsPopover from "@/components/ShippingMethodActionsPopover.vue";
import AddShippingMethodModal from "@/components/AddShippingMethodModal.vue";
import DataMappingsLinkActionPopover from "@/components/DataMappingsLinkActionPopover.vue";
import AddShippingMethodsModal from "@/components/AddShippingMethodsModal.vue";
import DataMappingLinkActionsPopover from "@/components/DataMappingLinkActionsPopover.vue";
const selectedSegment = ref("facilities")
Expand All @@ -477,19 +478,19 @@ async function openImportShopifyLocationsModal() {
}
async function openImportShippingMethodsModal() {
const importShippingMethods = await modalController.create({
const importShippingMethodsModal = await modalController.create({
component: ImportShippingMethodsModal
})
importShippingMethods.present();
importShippingMethodsModal.present();
}
async function openAddShippingMethodModal() {
const addShippingMethodModal = await modalController.create({
component: AddShippingMethodModal
async function openAddShippingMethodsModal() {
const addShippingMethodsModal = await modalController.create({
component: AddShippingMethodsModal
})
addShippingMethodModal.present();
addShippingMethodsModal.present();
}
async function openShippingMethodActionsPopover(event: any) {
Expand All @@ -502,14 +503,14 @@ async function openShippingMethodActionsPopover(event: any) {
shippingMethodActionsPopover.present()
}
async function openDataMappingsLinkActionPopover(event: any) {
const dataMappingsLinkActionPopover = await popoverController.create({
component: DataMappingsLinkActionPopover,
async function openDataMappingLinkActionsPopover(event: any) {
const dataMappingLinkActionsPopover = await popoverController.create({
component: DataMappingLinkActionsPopover,
event,
showBackdrop: false
});
dataMappingsLinkActionPopover.present()
dataMappingLinkActionsPopover.present()
}
</script>

Expand Down

0 comments on commit 64652c9

Please sign in to comment.