CSR-2179: fixes from PR
This commit is contained in:
parent
5c1e6b550a
commit
374b97bcb6
2 changed files with 9 additions and 10 deletions
|
|
@ -999,11 +999,6 @@ export default {
|
|||
},
|
||||
subTotal() {
|
||||
if (!this.lineItems || this.lineItems.length < 1) return;
|
||||
if (this.isInsurance || !this.shouldHideRecalibration) {
|
||||
console.log(" first this.lineItems: ", this.lineItems)
|
||||
} else {
|
||||
console.log(" 2nd this.lineItemsWithoutRecal: ", this.lineItemsWithoutRecal)
|
||||
}
|
||||
return this.isInsurance || !this.shouldHideRecalibration
|
||||
? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order)
|
||||
: baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal
|
||||
|
|
|
|||
|
|
@ -44,9 +44,7 @@
|
|||
<div class="col-md-6 col-xl-4">
|
||||
<!-- If Cash AND vehicle does not require recal OR if Cash AND State requires showing recal, then show Afterpay banner -->
|
||||
<afterpayModalBanner
|
||||
v-if="
|
||||
!isInsuranceSelected && (!isRecalibrationOnOrder || !shouldHideRecalibration)
|
||||
"
|
||||
v-if="showAfterpayBanner"
|
||||
cmsWidgetName="AfterpayModalWidget"
|
||||
:lineItems="lineItems" />
|
||||
|
||||
|
|
@ -54,7 +52,7 @@
|
|||
<recalDisclaimer
|
||||
class="mb-0"
|
||||
cmsWidgetName="RecalDisclaimerWidget"
|
||||
v-if="isRecalibrationOnOrder && shouldHideRecalibration"
|
||||
v-if="showRecalDisclaimer"
|
||||
v-on="{ textLinkClicked: openModalAction }"
|
||||
alertClass="alert-info" />
|
||||
|
||||
|
|
@ -232,7 +230,7 @@ export default {
|
|||
pageName: to.query.fmgPage,
|
||||
experiment: experimentForLogging,
|
||||
},
|
||||
"vehicle",
|
||||
"quote",
|
||||
false
|
||||
);
|
||||
}
|
||||
|
|
@ -367,6 +365,12 @@ export default {
|
|||
);
|
||||
return recalSettingValue;
|
||||
},
|
||||
showAfterpayBanner() {
|
||||
return !this.isInsuranceSelected && (!this.isRecalibrationOnOrder || !this.shouldHideRecalibration)
|
||||
},
|
||||
showRecalDisclaimer() {
|
||||
return this.isRecalibrationOnOrder && this.shouldHideRecalibration
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
openModalAction(modalName) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue