From 40ffbe908c900a93f3ab7485986e7bb982ad5d29 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 13 Jan 2026 15:55:55 -0500 Subject: [PATCH 1/5] CASH-2148 CASH-2148 - reset installOem flag when vehicle or vehicle part changes --- src/layouts/vehicle-parts/vehicle-parts.vue | 6 ++++++ src/store/index.js | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/layouts/vehicle-parts/vehicle-parts.vue b/src/layouts/vehicle-parts/vehicle-parts.vue index b8e773d30..6965635b7 100644 --- a/src/layouts/vehicle-parts/vehicle-parts.vue +++ b/src/layouts/vehicle-parts/vehicle-parts.vue @@ -198,6 +198,12 @@ export default { false ); + this.dispatchStoreAction( + this.storeActions.SAVE_IS_OEM_GLASS_SELECTED, + false, + false + ); + // Navigate to the next page this.navigateForward(matchedParts); }, diff --git a/src/store/index.js b/src/store/index.js index 8faf39f73..15c69f483 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -344,6 +344,10 @@ export const mutations = { state.order.isRecalAckOptIn = isRecalAckOptIn; }, updateIsOemGlassSelected(state, isOemGlassSelected) { + console.log( + "Mutation::::::::::::::::::::::::::::::::::::::: updateIsOemGlassSelected:", + isOemGlassSelected + ); state.order.damage.installOemGlass = isOemGlassSelected; }, updateIsMSRFeeApplicable(state, isMSRFeeApplicable) { From f97c2f37eb904a02da3c4060bfc6d2db93579f49 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 13 Jan 2026 15:57:53 -0500 Subject: [PATCH 2/5] CASH-2148 CASH-2148 --- src/layouts/part-questions/part-questions.vue | 6 ++++++ src/store/index.js | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/layouts/part-questions/part-questions.vue b/src/layouts/part-questions/part-questions.vue index 5456d868f..c3fbee941 100644 --- a/src/layouts/part-questions/part-questions.vue +++ b/src/layouts/part-questions/part-questions.vue @@ -188,6 +188,12 @@ export default { } }); + this.dispatchStoreAction( + this.storeActions.SAVE_IS_OEM_GLASS_SELECTED, + false, + false + ); + // save to vuex store as order.damage.partQuestionAnswers (array) // used in GET_PARTS call following this one await this.dispatchStoreAction( diff --git a/src/store/index.js b/src/store/index.js index 15c69f483..8faf39f73 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -344,10 +344,6 @@ export const mutations = { state.order.isRecalAckOptIn = isRecalAckOptIn; }, updateIsOemGlassSelected(state, isOemGlassSelected) { - console.log( - "Mutation::::::::::::::::::::::::::::::::::::::: updateIsOemGlassSelected:", - isOemGlassSelected - ); state.order.damage.installOemGlass = isOemGlassSelected; }, updateIsMSRFeeApplicable(state, isMSRFeeApplicable) { From bae8770fb850ac4bb1d41848c9576829913fc423 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 13 Jan 2026 16:06:07 -0500 Subject: [PATCH 3/5] prettier prettier --- src/layouts/part-questions/part-questions.vue | 6 +----- src/layouts/vehicle-parts/vehicle-parts.vue | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/layouts/part-questions/part-questions.vue b/src/layouts/part-questions/part-questions.vue index c3fbee941..958a38095 100644 --- a/src/layouts/part-questions/part-questions.vue +++ b/src/layouts/part-questions/part-questions.vue @@ -188,11 +188,7 @@ export default { } }); - this.dispatchStoreAction( - this.storeActions.SAVE_IS_OEM_GLASS_SELECTED, - false, - false - ); + this.dispatchStoreAction(this.storeActions.SAVE_IS_OEM_GLASS_SELECTED, false, false); // save to vuex store as order.damage.partQuestionAnswers (array) // used in GET_PARTS call following this one diff --git a/src/layouts/vehicle-parts/vehicle-parts.vue b/src/layouts/vehicle-parts/vehicle-parts.vue index 6965635b7..55fc1852c 100644 --- a/src/layouts/vehicle-parts/vehicle-parts.vue +++ b/src/layouts/vehicle-parts/vehicle-parts.vue @@ -198,11 +198,7 @@ export default { false ); - this.dispatchStoreAction( - this.storeActions.SAVE_IS_OEM_GLASS_SELECTED, - false, - false - ); + this.dispatchStoreAction(this.storeActions.SAVE_IS_OEM_GLASS_SELECTED, false, false); // Navigate to the next page this.navigateForward(matchedParts); From cc52bfc46aa952bdcaf4bae35fdbf56cfbd31acb Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 13 Jan 2026 20:27:53 -0500 Subject: [PATCH 4/5] CASH-2148 CASH-fix test --- src/layouts/part-questions/part-questions.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/layouts/part-questions/part-questions.spec.js b/src/layouts/part-questions/part-questions.spec.js index 268f1febd..e7279dbe5 100644 --- a/src/layouts/part-questions/part-questions.spec.js +++ b/src/layouts/part-questions/part-questions.spec.js @@ -306,6 +306,10 @@ describe("partQuestions.vue...", () => { //Assert expect(spy).toHaveBeenNthCalledWith( 1, + storeActions.SAVE_IS_OEM_GLASS_SELECTED, false, false + ); + expect(spy).toHaveBeenNthCalledWith( + 2, "savePartQuestionAnswers", [ { From 97bba7fe93bfed3192700c0d8075c81ec779089a Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 13 Jan 2026 20:36:09 -0500 Subject: [PATCH 5/5] prettier --- src/layouts/part-questions/part-questions.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/part-questions/part-questions.spec.js b/src/layouts/part-questions/part-questions.spec.js index e7279dbe5..4dcbb669c 100644 --- a/src/layouts/part-questions/part-questions.spec.js +++ b/src/layouts/part-questions/part-questions.spec.js @@ -306,7 +306,9 @@ describe("partQuestions.vue...", () => { //Assert expect(spy).toHaveBeenNthCalledWith( 1, - storeActions.SAVE_IS_OEM_GLASS_SELECTED, false, false + storeActions.SAVE_IS_OEM_GLASS_SELECTED, + false, + false ); expect(spy).toHaveBeenNthCalledWith( 2,