Add payment-method resetting
This commit is contained in:
parent
616cb187ed
commit
1e9d3f7a4d
3 changed files with 11 additions and 2 deletions
|
|
@ -69,6 +69,7 @@ const storeMutations = {
|
||||||
RESET_SERVICE_LOCATION_PROVIDER: "resetServiceLocationProvider",
|
RESET_SERVICE_LOCATION_PROVIDER: "resetServiceLocationProvider",
|
||||||
RESET_SERVICE_LOCATION_MOBILE_ADDRESS: "resetServiceLocationMobileAddress",
|
RESET_SERVICE_LOCATION_MOBILE_ADDRESS: "resetServiceLocationMobileAddress",
|
||||||
RESET_SCHEDULE: "resetSchedule",
|
RESET_SCHEDULE: "resetSchedule",
|
||||||
|
RESET_PAYMENT_METHOD_CHOICE: "resetPaymentMethodChoice",
|
||||||
|
|
||||||
// OTHER MUTATIONS
|
// OTHER MUTATIONS
|
||||||
UPDATE_PAGE_DATA: "updatePageData",
|
UPDATE_PAGE_DATA: "updatePageData",
|
||||||
|
|
|
||||||
|
|
@ -93,8 +93,8 @@ export default {
|
||||||
}
|
}
|
||||||
if (this.showAddRainDefense) {
|
if (this.showAddRainDefense) {
|
||||||
const answer = getAnswer("ADD RAIN DEFENSE", this.answersCmsData);
|
const answer = getAnswer("ADD RAIN DEFENSE", this.answersCmsData);
|
||||||
answer.SubText = "+$" + this.rainDefensePrice;
|
//answer.SubText = "+$" + this.rainDefensePrice;
|
||||||
answers.push(answer);
|
//answers.push(answer);
|
||||||
}
|
}
|
||||||
|
|
||||||
return answers;
|
return answers;
|
||||||
|
|
|
||||||
|
|
@ -423,6 +423,10 @@ export const mutations = {
|
||||||
state.order.serviceLocation.state = null;
|
state.order.serviceLocation.state = null;
|
||||||
state.order.serviceLocation.isVehicleProtected = null;
|
state.order.serviceLocation.isVehicleProtected = null;
|
||||||
},
|
},
|
||||||
|
resetPaymentMethodChoice(state) {
|
||||||
|
state.order.payment.isPia = null;
|
||||||
|
state.order.payment.piaType = null;
|
||||||
|
},
|
||||||
// Misc Mutations
|
// Misc Mutations
|
||||||
updateStateWithOrderInformation(state, sessionInformation) {
|
updateStateWithOrderInformation(state, sessionInformation) {
|
||||||
state.order.referralNumber = sessionInformation.order.referralNumber;
|
state.order.referralNumber = sessionInformation.order.referralNumber;
|
||||||
|
|
@ -893,6 +897,7 @@ export const actions = {
|
||||||
context.commit(storeMutations.RESET_SERVICE_LOCATION_PROVIDER);
|
context.commit(storeMutations.RESET_SERVICE_LOCATION_PROVIDER);
|
||||||
|
|
||||||
context.commit(storeMutations.RESET_SCHEDULE);
|
context.commit(storeMutations.RESET_SCHEDULE);
|
||||||
|
context.commit(storeMutations.RESET_PAYMENT_METHOD_CHOICE);
|
||||||
},
|
},
|
||||||
|
|
||||||
resetState(context) {
|
resetState(context) {
|
||||||
|
|
@ -2017,6 +2022,8 @@ export const actions = {
|
||||||
|
|
||||||
savePaymentType(context, isInsurance) {
|
savePaymentType(context, isInsurance) {
|
||||||
context.commit(storeMutations.UPDATE_IS_INSURANCE, isInsurance);
|
context.commit(storeMutations.UPDATE_IS_INSURANCE, isInsurance);
|
||||||
|
|
||||||
|
context.commit(storeMutations.RESET_PAYMENT_METHOD_CHOICE);
|
||||||
},
|
},
|
||||||
|
|
||||||
savePaymentMethodChoice(context, paymentMethod) {
|
savePaymentMethodChoice(context, paymentMethod) {
|
||||||
|
|
@ -2294,6 +2301,7 @@ export const actions = {
|
||||||
context.state.order.serviceLocation.appointmentType
|
context.state.order.serviceLocation.appointmentType
|
||||||
) {
|
) {
|
||||||
context.commit(storeMutations.RESET_SCHEDULE);
|
context.commit(storeMutations.RESET_SCHEDULE);
|
||||||
|
context.commit(storeMutations.RESET_PAYMENT_METHOD_CHOICE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue