diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json
index 712c0545..7ee7704b 100644
--- a/src/i18n/locales/en.json
+++ b/src/i18n/locales/en.json
@@ -39,6 +39,7 @@
"Copied to clipboard": "Copied to clipboard",
"Corresponding sales orders": "Corresponding sales orders",
"Custom": "Custom",
+ "Disconnected": "Disconnected",
"Delisting at": "Delisting at {listingTime}",
"Delisting failed at": "Delisting failed at {listingTime}",
"Delisted at": "Delisted at {listingTime}",
diff --git a/src/views/catalog-product-details.vue b/src/views/catalog-product-details.vue
index eb5ee242..0c8366f7 100644
--- a/src/views/catalog-product-details.vue
+++ b/src/views/catalog-product-details.vue
@@ -346,7 +346,7 @@
{{ listData.listingTimeAndStatus }}
-
+
{{ $t(listData.listingStatus) }}
@@ -964,13 +964,11 @@ export default defineComponent({
try {
let payload = {
"inputFields": {
- "productStoreId": this.currentEComStore.productStoreId,
- "accessScopeEnumId": "SHOP_NO_ACCESS",
- 'accessScopeEnumId_op': 'notEqual'
+ "productStoreId": this.currentEComStore.productStoreId
},
"orderBy": "name ASC",
"entityName": "ShopifyShopAndConfig",
- "fieldList": ["shopifyConfigId", "shopId", "name"],
+ "fieldList": ["accessScopeEnumId", "shopifyConfigId", "shopId", "name"],
"viewSize": 20
} as any
@@ -1057,10 +1055,13 @@ export default defineComponent({
promiseDate: metafieldValue["promise_date"]
}
let listingTime = ''
- if(listData.listingTime) {
+ if (listData.listingTime) {
listingTime = DateTime.fromFormat(listData.listingTime, "MMM dd,yyyy HH:mm:ss").toLocaleString(DateTime.DATETIME_MED);
}
- if (!listData.containsError) {
+ if (listData.accessScopeEnumId === 'SHOP_NO_ACCESS') {
+ listData.status = 'disconnected'
+ listData.listingStatus = 'Disconnected'
+ } else if (!listData.containsError) {
if (listData.status === 'inactive') {
// showing the job's runTime as listing time, and not showing listing time if not present
listingTime && (listData.listingTimeAndStatus = this.$t("Delisted at", { listingTime }))