From 27d9604c92c7d627adf8fb926454366b47d5d817 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Thu, 14 Nov 2024 10:56:06 -0500 Subject: [PATCH 1/5] Use loading modal for navigation on payment-method. --- src/layouts/payment-method/payment-method.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 5a595a99b..f4972a054 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -525,6 +525,8 @@ export default { async forwardButtonAction() { this.forwardClicked = true; + this.$refs.loadingModal.showModal(); + await this.dispatchStoreAction( storeActions.SAVE_PAYMENT_METHOD_CHOICE, this.paymentMethod, @@ -575,7 +577,6 @@ export default { } }, async setupPia() { - this.$refs.loadingModal.showModal(); // we need a work order number for pia so we can pass it to safeliteHop. // this will create one in delete substatus. try { From d5d0e7a48046ee61f392bdca6d146c4ad780390e Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Thu, 14 Nov 2024 23:47:34 +0530 Subject: [PATCH 2/5] CSR-2371 revert previous commit and check experiment for recal disclaimer --- src/layouts/quote/quote.vue | 9 ++++++++- src/store/index.js | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index df93bd338..3f0da0131 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -436,8 +436,15 @@ export default { (!this.isRecalibrationOnOrder || !this.shouldHideRecalibration) ); }, + isRecalPriceRemove() { + return ( + experimentMixin.methods + .getSettingValue(experimentSettings.RECAL_PRICE_REMOVE) + ?.toLowerCase() === "true" + ); + }, showRecalDisclaimer() { - return this.isRecalibrationOnOrder && this.shouldHideRecalibration; + return this.isRecalibrationOnOrder && this.isRecalPriceRemove; }, }, methods: { diff --git a/src/store/index.js b/src/store/index.js index 9ee0e6e19..ca10f8f62 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -826,6 +826,10 @@ export const getters = { order = state.order; } + if (order.payment.isInsurance) { + return false; + } + return ( experimentMixin.methods .getSettingValue(experimentSettings.RECAL_PRICE_REMOVE) From 1a124c4608806100a243c930e934f11dedbe28e0 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Thu, 14 Nov 2024 16:09:47 -0500 Subject: [PATCH 3/5] Fix failing test --- src/layouts/payment-method/payment-method.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layouts/payment-method/payment-method.spec.js b/src/layouts/payment-method/payment-method.spec.js index c9f67bca1..65c3b9a11 100644 --- a/src/layouts/payment-method/payment-method.spec.js +++ b/src/layouts/payment-method/payment-method.spec.js @@ -113,5 +113,7 @@ function setupMocks() { const wrapper = shallowMount(customerDetails, mountOptions); + wrapper.vm.$refs.loadingModal.showModal = jest.fn(); + return { wrapper }; } From 08a21a22a4f79bd923b3b770e6e82e9e63fa9f01 Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Fri, 15 Nov 2024 08:52:02 -0500 Subject: [PATCH 4/5] CSR-2383 fix cart expand on confirmation page. --- src/fmg-components/cart/cart.vue | 12 ++++++++-- src/layouts/confirmation/confirmation.vue | 29 +++++++++++++++-------- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index b7ae6c7a3..95d9cc239 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -1,6 +1,6 @@