diff --git a/src/main.ts b/src/main.ts index 3e6711f5..8d04647d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -47,6 +47,7 @@ const app = createApp(App) actions: permissionActions }) .use(dxpComponents, { + defaultImgUrl: require("@/assets/images/defaultImage.png"), login, logout, loader, diff --git a/src/views/catalog-product-details.vue b/src/views/catalog-product-details.vue index e574ec81..0efd2602 100644 --- a/src/views/catalog-product-details.vue +++ b/src/views/catalog-product-details.vue @@ -12,7 +12,7 @@
- +
@@ -397,7 +397,7 @@ import { shirtOutline } from "ionicons/icons"; import { useStore } from "@/store"; -import Image from '@/components/Image.vue'; +import { ShopifyImg } from "@hotwax/dxp-components"; import { mapGetters } from "vuex"; import { showToast, getFeature, hasError } from "@/utils"; import { translate } from "@/i18n"; @@ -416,7 +416,7 @@ import { Actions, hasPermission } from '@/authorization' export default defineComponent({ name: "catalog-product-details", components: { - Image, + ShopifyImg, IonButtons, IonBackButton, IonCard, diff --git a/src/views/catalog.vue b/src/views/catalog.vue index b4b4c7a9..f487850b 100644 --- a/src/views/catalog.vue +++ b/src/views/catalog.vue @@ -49,7 +49,7 @@
- +
{{ product.parentProductName }}
@@ -109,7 +109,7 @@ import { import { defineComponent } from 'vue'; import { useRouter } from "vue-router"; import { useStore } from "@/store"; -import Image from '@/components/Image.vue'; +import { ShopifyImg } from '@hotwax/dxp-components'; import { mapGetters } from 'vuex'; import { DateTime } from 'luxon'; import { JobService } from '@/services/JobService'; @@ -118,7 +118,7 @@ import { hasError } from '@/utils'; export default defineComponent({ name: 'Catalog', components: { - Image, + ShopifyImg, IonButtons, IonChip, IonCard, diff --git a/src/views/orders.vue b/src/views/orders.vue index 662faf29..4ca5f023 100644 --- a/src/views/orders.vue +++ b/src/views/orders.vue @@ -117,7 +117,7 @@ - +

{{ item.parentProductName ? item.parentProductName :item.productName }}

@@ -222,7 +222,7 @@ import { useStore } from "@/store"; import { mapGetters } from "vuex"; import { showToast } from '@/utils' import { Plugins } from '@capacitor/core'; -import Image from '@/components/Image.vue'; +import { ShopifyImg } from "@hotwax/dxp-components"; import emitter from "@/event-bus"; const { Clipboard } = Plugins; @@ -255,7 +255,7 @@ export default defineComponent({ IonToolbar, IonInfiniteScroll, IonInfiniteScrollContent, - Image + ShopifyImg }, data() { return { diff --git a/src/views/product-details.vue b/src/views/product-details.vue index 70bfcefb..e37f4965 100644 --- a/src/views/product-details.vue +++ b/src/views/product-details.vue @@ -21,7 +21,7 @@
- +
@@ -124,7 +124,7 @@
- +

{{ getProduct(item.groupValue).productName }}

@@ -213,7 +213,7 @@ import BackgroundJobModal from "./background-job-modal.vue"; import { useStore } from "@/store"; import { mapGetters } from "vuex"; import { ProductService } from '@/services/ProductService' -import Image from '@/components/Image.vue'; +import { ShopifyImg } from "@hotwax/dxp-components"; import { sizeIndex } from "@/apparel-sorter" import { DateTime } from 'luxon'; import emitter from "@/event-bus"; @@ -245,7 +245,7 @@ export default defineComponent({ IonTitle, IonToggle, IonToolbar, - Image + ShopifyImg }, beforeMount () { // TODO Handle if product id is invalid diff --git a/src/views/products.vue b/src/views/products.vue index 5e20c561..d45fb701 100644 --- a/src/views/products.vue +++ b/src/views/products.vue @@ -29,7 +29,7 @@
- +

{{ getProduct(product.groupValue).productName}}

@@ -72,7 +72,7 @@ import { useRouter } from "vue-router"; import BackgroundJobModal from "./background-job-modal.vue"; import { useStore } from "@/store"; import { mapGetters } from "vuex"; -import Image from '@/components/Image.vue'; +import { ShopifyImg } from "@hotwax/dxp-components"; export default defineComponent({ name: "settings", @@ -93,7 +93,7 @@ export default defineComponent({ IonTitle, IonSearchbar, IonToolbar, - Image + ShopifyImg }, data() { return { diff --git a/src/views/settings.vue b/src/views/settings.vue index 2f782d40..3fb7945a 100644 --- a/src/views/settings.vue +++ b/src/views/settings.vue @@ -137,7 +137,7 @@ import { import { defineComponent } from "vue"; import { mapGetters } from 'vuex' import TimeZoneModal from '@/views/timezone-modal.vue' -import Image from '@/components/Image.vue' +import Image from '@/components/Image.vue'; import { DateTime } from 'luxon'; export default defineComponent({