CASH-1123: logic changes for cart subheader

This commit is contained in:
AdamCaouetteSafelite 2025-09-01 23:20:17 -04:00
parent 523977671c
commit 048f8eb9ab
2 changed files with 13 additions and 3 deletions

View file

@ -11,7 +11,7 @@
aria-label="expand cart"
href="javascript:void(0)"
class="col d-flex justify-content-between py-0">
<span class="label">{{ OrderDetailsText }}</span>
<span class="label">{{ cartHeaderText }}</span>
<span class="label amount-due larger">
{{ getLineItemAmount(amountDue, showCoverageAsPending) }}
</span>
@ -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");
},

View file

@ -66,9 +66,9 @@
:insuranceCompanyName="insuranceCompanyName"
:showInsuranceCoverageAs="showInsuranceCoverageAs"
:shouldHideRecalibration="shouldHideRecalibration"
:isExpandedOnLoad="false"
:isItac="isItac"
:isNoComp="isNoComp"
:isExpandedOnLoad="false"
:isMSRFeeApplicable="isMSRFeeApplicable" />
<hr class="mb-5" />