From 048f8eb9abd74a94f8bad7320cb28e2d3f8d7fb0 Mon Sep 17 00:00:00 2001 From: AdamCaouetteSafelite Date: Mon, 1 Sep 2025 23:20:17 -0400 Subject: [PATCH] CASH-1123: logic changes for cart subheader --- src/fmg-components/cart/cart.vue | 14 ++++++++++++-- src/layouts/confirmation/confirmation.vue | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index 8337e78a1..c1f281e3d 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -11,7 +11,7 @@ aria-label="expand cart" href="javascript:void(0)" class="col d-flex justify-content-between py-0"> - {{ OrderDetailsText }} + {{ cartHeaderText }} {{ getLineItemAmount(amountDue, showCoverageAsPending) }} @@ -1097,9 +1097,19 @@ export default { amountDueText() { return this.getCmsContent("AmountDueTextWidget", "Text"); }, - OrderDetailsText() { + orderDetailsText() { return this.getCmsContent("OrderDetailsTextWidget", "Text"); }, + estimateDetailsText() { + return this.getCmsContent("EstimateDetailsTextWidget", "Text"); + }, + cartHeaderText() { + if (!this.isInsurance && this.shouldHideRecalibration) { + return this.estimateDetailsText; + } else { + return this.orderDetailsText; + } + }, amountPaidText() { return this.getCmsContent("AmountPaidTextWidget", "Text"); }, diff --git a/src/layouts/confirmation/confirmation.vue b/src/layouts/confirmation/confirmation.vue index b497125a1..2e1963288 100644 --- a/src/layouts/confirmation/confirmation.vue +++ b/src/layouts/confirmation/confirmation.vue @@ -66,9 +66,9 @@ :insuranceCompanyName="insuranceCompanyName" :showInsuranceCoverageAs="showInsuranceCoverageAs" :shouldHideRecalibration="shouldHideRecalibration" - :isExpandedOnLoad="false" :isItac="isItac" :isNoComp="isNoComp" + :isExpandedOnLoad="false" :isMSRFeeApplicable="isMSRFeeApplicable" />