From 71c48f1efeb91c77c210ab502ecb5306c0090fd3 Mon Sep 17 00:00:00 2001 From: Ridwa Date: Tue, 23 Jul 2024 15:57:58 +0530 Subject: [PATCH] Removed: removed getter , mutation for productIdentificationPref as now using it from DXP --- src/store/modules/user/UserState.ts | 1 - src/store/modules/user/getters.ts | 3 --- src/store/modules/user/index.ts | 4 ---- src/store/modules/user/mutation-types.ts | 1 - src/store/modules/user/mutations.ts | 3 --- src/views/AddProductModal.vue | 4 ++-- src/views/AddProductToPOModal.vue | 4 ++-- src/views/PurchaseOrderDetail.vue | 4 ++-- src/views/ReturnDetails.vue | 4 ++-- src/views/ShipmentDetails.vue | 4 ++-- 10 files changed, 10 insertions(+), 22 deletions(-) diff --git a/src/store/modules/user/UserState.ts b/src/store/modules/user/UserState.ts index 05dae63f..cb10271c 100644 --- a/src/store/modules/user/UserState.ts +++ b/src/store/modules/user/UserState.ts @@ -5,7 +5,6 @@ export default interface UserState { currentEComStore: object; instanceUrl: string; facilityLocationsByFacilityId: any; - productIdentificationPref: any; permissions: any; pwaState: any; } \ No newline at end of file diff --git a/src/store/modules/user/getters.ts b/src/store/modules/user/getters.ts index 79aa853b..7a584b2b 100644 --- a/src/store/modules/user/getters.ts +++ b/src/store/modules/user/getters.ts @@ -36,9 +36,6 @@ const getters: GetterTree = { getFacilityLocationsByFacilityId: (state) => (facilityId: string) => { return state.facilityLocationsByFacilityId[facilityId]; }, - getProductIdentificationPref: (state) => { - return state.productIdentificationPref; - }, getPwaState(state) { return state.pwaState; } diff --git a/src/store/modules/user/index.ts b/src/store/modules/user/index.ts index b2ac1a25..c66cd8e1 100644 --- a/src/store/modules/user/index.ts +++ b/src/store/modules/user/index.ts @@ -15,10 +15,6 @@ const userModule: Module = { permissions: [], instanceUrl: '', facilityLocationsByFacilityId: {}, - productIdentificationPref: { - primaryId: 'productId', - secondaryId: '' - }, pwaState: { updateExists: false, registration: null, diff --git a/src/store/modules/user/mutation-types.ts b/src/store/modules/user/mutation-types.ts index 34385352..f8fe7be5 100644 --- a/src/store/modules/user/mutation-types.ts +++ b/src/store/modules/user/mutation-types.ts @@ -6,6 +6,5 @@ export const USER_CURRENT_FACILITY_UPDATED = SN_USER + '/CURRENT_FACILITY_UPDATE export const USER_INSTANCE_URL_UPDATED = SN_USER + '/INSTANCE_URL_UPDATED' export const USER_CURRENT_ECOM_STORE_UPDATED = SN_USER + '/CURRENT_ECOM_STORE_UPDATED' export const USER_FACILITY_LOCATIONS_BY_FACILITY_ID = SN_USER + '/FACILITY_LOCATIONS_BY_FACILITY_ID' -export const USER_PREF_PRODUCT_IDENT_CHANGED = SN_USER + '/PREF_PRODUCT_IDENT_CHANGED' export const USER_PERMISSIONS_UPDATED = SN_USER + '/PERMISSIONS_UPDATED' export const USER_PWA_STATE_UPDATED = SN_USER + '/PWA_STATE_UPDATED' \ No newline at end of file diff --git a/src/store/modules/user/mutations.ts b/src/store/modules/user/mutations.ts index 206a09ef..df65bfb1 100644 --- a/src/store/modules/user/mutations.ts +++ b/src/store/modules/user/mutations.ts @@ -28,9 +28,6 @@ const mutations: MutationTree = { [types.USER_FACILITY_LOCATIONS_BY_FACILITY_ID] (state, payload) { state.facilityLocationsByFacilityId[payload.facilityId] = payload.facilityLocations; }, - [types.USER_PREF_PRODUCT_IDENT_CHANGED](state, payload) { - state.productIdentificationPref = payload - }, [types.USER_PERMISSIONS_UPDATED] (state, payload) { state.permissions = payload }, diff --git a/src/views/AddProductModal.vue b/src/views/AddProductModal.vue index 531c04f2..6a8a217c 100644 --- a/src/views/AddProductModal.vue +++ b/src/views/AddProductModal.vue @@ -20,8 +20,8 @@ -

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(product.productId)) || getProduct(product.productId).productName }}

-

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(product.productId))}}

+

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(product.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(product.productId)) : getProduct(product.productId).productName }}

+

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(product.productId)) }}

{{ translate("Add to Shipment") }} diff --git a/src/views/AddProductToPOModal.vue b/src/views/AddProductToPOModal.vue index c1c09ac9..7b91a3b7 100644 --- a/src/views/AddProductToPOModal.vue +++ b/src/views/AddProductToPOModal.vue @@ -19,8 +19,8 @@ -

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(product.productId)) || getProduct(product.productId).productName }}

-

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(product.productId))}}

+

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(product.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(product.productId)) : getProduct(product.productId).productName }}

+

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(product.productId)) }}

{{ translate("Add to Purchase Order") }} diff --git a/src/views/PurchaseOrderDetail.vue b/src/views/PurchaseOrderDetail.vue index 1720f7dc..8c7ccadc 100644 --- a/src/views/PurchaseOrderDetail.vue +++ b/src/views/PurchaseOrderDetail.vue @@ -56,8 +56,8 @@ -

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) || getProduct(item.productId).productName }}

-

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId))}}

+

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : getProduct(item.productId).productName }}

+

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}

diff --git a/src/views/ReturnDetails.vue b/src/views/ReturnDetails.vue index 9c73e7ed..d028199e 100644 --- a/src/views/ReturnDetails.vue +++ b/src/views/ReturnDetails.vue @@ -41,8 +41,8 @@ -

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) || getProduct(item.productId).productName }}

-

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId))}}

+

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : getProduct(item.productId).productName }}

+

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}

diff --git a/src/views/ShipmentDetails.vue b/src/views/ShipmentDetails.vue index 3c0d17d1..f66cc1b0 100644 --- a/src/views/ShipmentDetails.vue +++ b/src/views/ShipmentDetails.vue @@ -39,8 +39,8 @@ -

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) || getProduct(item.productId).productName }}

-

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId))}}

+

{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) ? getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) : getProduct(item.productId).productName }}

+

{{ getProductIdentificationValue(productIdentificationPref.secondaryId, getProduct(item.productId)) }}