From 8950077a88ab5d7bac98ec823d627207b1766bd6 Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Mon, 16 Sep 2024 20:20:57 +0530 Subject: [PATCH] Improved: Added a toast when we cannot set the product store as primary due to a missing Shopify shop(#304) --- src/components/ProductStorePopover.vue | 2 ++ src/locales/en.json | 1 + src/views/FacilityDetails.vue | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ProductStorePopover.vue b/src/components/ProductStorePopover.vue index 75f10904..f4da6bad 100644 --- a/src/components/ProductStorePopover.vue +++ b/src/components/ProductStorePopover.vue @@ -118,6 +118,8 @@ export default defineComponent({ // if we does not get shopify shop id for the store then not making product store as primary if(!shopifyShopId) { + showToast(translate('Failed to make product store primary due to missing Shopify shop')) + emitter.emit('dismissLoader') return; } diff --git a/src/locales/en.json b/src/locales/en.json index ff9b6695..6aff2688 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -144,6 +144,7 @@ "Failed to find the facility locations": "Failed to find the facility locations", "Failed to make product store as primary.": "Failed to make product store as primary.", "Failed to make product store primary.": "Failed to make product store primary.", + "Failed to make product store primary due to missing Shopify shop": "Failed to make product store primary due to missing Shopify shop", "Failed to regenerate latitude and longitude for the facility.": "Failed to regenerate latitude and longitude for the facility.", "Failed to rename facility.": "Failed to rename facility.", "Failed to remove facility latitude and longitude.": "Failed to remove facility latitude and longitude.", diff --git a/src/views/FacilityDetails.vue b/src/views/FacilityDetails.vue index 15616f3b..8c2cfff4 100644 --- a/src/views/FacilityDetails.vue +++ b/src/views/FacilityDetails.vue @@ -172,7 +172,7 @@ {{ getProductStore(store.productStoreId)?.storeName }} - {{ translate("primary store") }} + {{ translate("primary store") }}