Merge pull request #1680 from Safelite/feature/Digital/CSR-1897
Update payment-method.vue
This commit is contained in:
commit
6017368e41
1 changed files with 8 additions and 7 deletions
|
|
@ -307,6 +307,7 @@ export default {
|
||||||
availableVaps: [],
|
availableVaps: [],
|
||||||
paymentMethodInternalModel: this.getPaymentMethodFromStore(),
|
paymentMethodInternalModel: this.getPaymentMethodFromStore(),
|
||||||
inactivePromos: this.getInactivePromosFromStore(),
|
inactivePromos: this.getInactivePromosFromStore(),
|
||||||
|
isPiaDisabled: this.getPiaStatusFromStore(),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -499,6 +500,13 @@ export default {
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
getPiaStatusFromStore() {
|
||||||
|
const piaExperience = this.getSettingValue(experimentSettings.PIA_EXPERIENCE);
|
||||||
|
|
||||||
|
const isEnabled = piaExperience === "PIA Optional" || piaExperience === "PIA Required";
|
||||||
|
|
||||||
|
return !isEnabled;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
damageInfo() {
|
damageInfo() {
|
||||||
|
|
@ -519,13 +527,6 @@ export default {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isPiaDisabled() {
|
|
||||||
const piaExperience = this.getSettingValue(experimentSettings.PIA_EXPERIENCE);
|
|
||||||
|
|
||||||
const isEnabled = piaExperience === "PIA Optional" || piaExperience === "PIA Required";
|
|
||||||
|
|
||||||
return !isEnabled;
|
|
||||||
},
|
|
||||||
paymentMethod() {
|
paymentMethod() {
|
||||||
if (this.isPiaDisabled) {
|
if (this.isPiaDisabled) {
|
||||||
return paymentMethods.LATER;
|
return paymentMethods.LATER;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue