From f482d7752419e8ec6ee216c52f5252780938ab4b Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:00:39 -0500 Subject: [PATCH] CSR-2005 CSR-2005 Nav to heritage funnel from insurance page --- .../insurance-company/insurance-company.vue | 15 ++++++--------- src/layouts/quote/quote.vue | 1 - src/store/index.js | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/layouts/insurance-company/insurance-company.vue b/src/layouts/insurance-company/insurance-company.vue index da649eb3a..b6593bbb2 100644 --- a/src/layouts/insurance-company/insurance-company.vue +++ b/src/layouts/insurance-company/insurance-company.vue @@ -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() { diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index fd85a396a..96123b03a 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -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 { diff --git a/src/store/index.js b/src/store/index.js index 6e03ed2ec..4fe96703e 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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();