CSR-747 Send isInsurance to saveSession
This commit is contained in:
parent
138a8d1c5e
commit
8e2178c435
4 changed files with 15 additions and 2 deletions
|
|
@ -61,6 +61,7 @@ const storeActions = {
|
|||
"resetMoldingAndCapabilityQuestionAnswersIfNeeded",
|
||||
SAVE_MOLDING_QUESTION_ANSWERS: "saveMoldingQuestionAnswers",
|
||||
SAVE_CAPABILITY_QUESTION_ANSWERS: "saveCapabilityQuestionAnswers",
|
||||
SAVE_IS_INSURANCE: "saveIsInsurance",
|
||||
};
|
||||
|
||||
export { storeActions };
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@ const storeMutations = {
|
|||
|
||||
UPDATE_CUSTOMER_EMAIL_ADDRESS: "updateCustomerEmailAddress",
|
||||
|
||||
UPDATE_IS_INSURANCE: "updateIsInsurance",
|
||||
|
||||
// ORDER MUTATIONS
|
||||
UPDATE_REFERRAL_NUMBER: "updateReferralNumber",
|
||||
UPDATE_REFERRAL_DATE: "updateReferralDate",
|
||||
|
|
|
|||
|
|
@ -57,10 +57,11 @@ import textBlock from "@/common-components/text-block/text-block";
|
|||
import modal from "@/common-components/modal/modal";
|
||||
import baseMixin from "@/mixins/base-mixin.js";
|
||||
import vehicleQuestionsMixin from "../../mixins/vehicle-questions-mixin";
|
||||
import { storeActions } from "@/constants/store-actions";
|
||||
|
||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||
import { Form } from "vee-validate";
|
||||
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper"
|
||||
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
||||
|
||||
export default {
|
||||
name: "quote",
|
||||
|
|
@ -161,8 +162,14 @@ export default {
|
|||
vehicleQuestionsMixin.methods.backButtonAction(this);
|
||||
},
|
||||
forwardButtonAction() {
|
||||
// TODO KO if VAPS package is not selected, return
|
||||
|
||||
// TODO KO is VAPS package is selected, add the items as needed
|
||||
|
||||
this.dispatchStoreAction(storeActions.SAVE_IS_INSURANCE, this.isInsuranceSelected);
|
||||
|
||||
navigateToHeritageFunnel();
|
||||
}
|
||||
},
|
||||
},
|
||||
components: {
|
||||
funnelHeader,
|
||||
|
|
|
|||
|
|
@ -1334,6 +1334,9 @@ export const actions = {
|
|||
clearVin(context) {
|
||||
context.commit(storeMutations.UPDATE_VEHICLE_VIN, null);
|
||||
},
|
||||
saveIsInsurance(context, isInsurance) {
|
||||
context.commit(storeMutations.UPDATE_IS_INSURANCE, isInsurance);
|
||||
}
|
||||
};
|
||||
|
||||
export default createStore({
|
||||
|
|
|
|||
Loading…
Reference in a new issue