CSR-747 Send isInsurance to saveSession

This commit is contained in:
Katie 2022-11-10 16:04:48 -05:00
parent 138a8d1c5e
commit 8e2178c435
4 changed files with 15 additions and 2 deletions

View file

@ -61,6 +61,7 @@ const storeActions = {
"resetMoldingAndCapabilityQuestionAnswersIfNeeded",
SAVE_MOLDING_QUESTION_ANSWERS: "saveMoldingQuestionAnswers",
SAVE_CAPABILITY_QUESTION_ANSWERS: "saveCapabilityQuestionAnswers",
SAVE_IS_INSURANCE: "saveIsInsurance",
};
export { storeActions };

View file

@ -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",

View file

@ -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,

View file

@ -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({