Merge pull request #2057 from Safelite/feature/CSR-2294
CSR-2294 $0 deductible do not show payment alert
This commit is contained in:
commit
5e3f6c3b47
2 changed files with 10 additions and 2 deletions
|
|
@ -78,7 +78,7 @@
|
|||
validationRules="payment-method-required" />
|
||||
|
||||
<alert
|
||||
v-if="!showPaymentMethodQuestions && !forwardClicked"
|
||||
v-if="showHavePaymentReadyAlert"
|
||||
:isDismissible="false"
|
||||
alertClass="alert-info"
|
||||
cmsWidgetName="NoPiaDisclaimerWidget"
|
||||
|
|
@ -681,6 +681,11 @@ export default {
|
|||
|
||||
return false;
|
||||
},
|
||||
showHavePaymentReadyAlert() {
|
||||
return (
|
||||
!this.showPaymentMethodQuestions && !this.forwardClicked && this.totalAmountDue > 0
|
||||
);
|
||||
},
|
||||
totalAmountDue() {
|
||||
return baseMixin.methods.getAmountDue(this.lineItems);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -116,7 +116,10 @@ const routes = [
|
|||
);
|
||||
|
||||
// clear part related state because heritage selected a new vehicle
|
||||
if (to.query.fmgPage === fmgPageValues.VEHICLE && eval(getFunnelCookie()?.HasDelayedClaimRegistration)) {
|
||||
if (
|
||||
to.query.fmgPage === fmgPageValues.VEHICLE &&
|
||||
eval(getFunnelCookie()?.HasDelayedClaimRegistration)
|
||||
) {
|
||||
console.log(new Date() + "Router: Policy Vehicle Changed");
|
||||
store.commit(storeMutations.RESET_GLASS_PARTS_STATE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue