CSR-2005 Nav to heritage funnel from insurance page
This commit is contained in:
CarlNation 2024-03-07 15:00:39 -05:00
parent f87b3b36e5
commit f482d77524
3 changed files with 7 additions and 11 deletions

View file

@ -42,16 +42,10 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { settleAllPromises } from "@/helpers/layout-helper";
import { storeActions } from "@/constants/store-actions";
import { errorMessages } from "@/constants/error-messages";
import {
getDamageString,
getIsWindshieldOnly,
isGlassAvailableForCarId,
} from "@/helpers/damage-helper";
import { required, regex } from "@/helpers/validation-rules";
import { Form, defineRule } from "vee-validate";
import { getFunnelCookie } from "@/helpers/heritage-integration/cookie-helper";
import { routerParams } from "@/router/router-constants/router-params";
import baseMixin from "@/mixins/base-mixin.js";
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
import store from "@/store";
import vinPagesMixin from "@/mixins/vin-pages-mixin";
@ -126,8 +120,11 @@ export default {
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
},
forwardButtonAction() {
// Still needs wired up when insurance-details page is created
this.$router.navigateWithSaving(this.navigationScenarios.CLICKED_FORWARD, this.$route);
navigateToHeritageFunnel({
shouldSaveSession: true,
pageNameToLog: "insurance-company",
loadingModal: this.$refs.loadingModal,
});
},
},
mounted() {

View file

@ -92,7 +92,6 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { required } from "@/helpers/validation-rules";
import { errorMessages } from "@/constants/error-messages";
import { Form, defineRule } from "vee-validate";
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
import { applicationConfig } from "@/constants/application-config";
import { payWithInsuranceStates } from "@/constants/pay-with-insurance-states";
import {

View file

@ -2472,7 +2472,7 @@ export const actions = {
logApiCall: true,
pageNameToLog: pageNameToLog,
});
console.log(insuranceCompanyList);
return insuranceCompanyList.data.sort((a, b) => {
const nameA = a.accountName.toUpperCase();
const nameB = b.accountName.toUpperCase();