From c6828a98bd38d8ace2963c9045a39b22ed53aa0a Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 4 Jun 2024 12:04:53 +0530 Subject: [PATCH] Implemented: ui for the segments in shopify details page (#4) --- src/router/index.ts | 6 + src/views/Shopify.vue | 9 +- src/views/ShopifyConnectionDetails.vue | 283 +++++++++++++++++++++++++ 3 files changed, 297 insertions(+), 1 deletion(-) create mode 100644 src/views/ShopifyConnectionDetails.vue diff --git a/src/router/index.ts b/src/router/index.ts index 6965faa..1a32d9b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,6 +7,7 @@ import AddConfigurations from "@/views/AddConfigurations.vue"; import ProductStoreDetails from "@/views/ProductStoreDetails.vue"; import { DxpLogin, useAuthStore } from "@hotwax/dxp-components"; import { loader } from '@/user-utils'; +import ShopifyConnectionDetails from "@/views/ShopifyConnectionDetails.vue"; const authGuard = async (to: any, from: any, next: any) => { const authStore = useAuthStore() @@ -80,6 +81,11 @@ const routes: Array = [ component: ProductStoreDetails, props: true }, + { + path: "/shopify-connection-details", + name: "ShopifyConnectionDetails", + component: ShopifyConnectionDetails + }, { path: "/login", name: "Login", diff --git a/src/views/Shopify.vue b/src/views/Shopify.vue index 6c0cdb1..6b79578 100644 --- a/src/views/Shopify.vue +++ b/src/views/Shopify.vue @@ -32,7 +32,7 @@
-
+
@@ -97,6 +97,7 @@ import { IonButton, IonButtons, IonChip, IonContent, IonFab, IonFabButton, IonHe import { ellipsisVerticalOutline, filterOutline, flashOutline, informationCircleOutline, openOutline, storefrontOutline } from "ionicons/icons"; import { translate } from "@/i18n"; import ShopifyShopActionsPopover from "@/components/ShopifyShopActionsPopover.vue"; +import router from "@/router"; async function openShopifyShopActionsPopover(event: Event) { const popover = await popoverController.create({ @@ -107,6 +108,12 @@ async function openShopifyShopActionsPopover(event: Event) { popover.present() } + +function openShopifyConnectionDetails() { + console.log('enter'); + + router.push({ path: "/shopify-connection-details" }) +}