From c2c5f17ef7dfb71bbc28ea135fc1a8535d131d99 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Tue, 16 Aug 2022 14:52:16 -0400 Subject: [PATCH] CSR-726 | Create cashOrInsuranceQuestion component --- .../cash-or-insurance-question.spec.js | 0 .../cash-or-insurance-question.vue | 45 ++++++++++++++ src/layouts/quote/quote.vue | 60 +++++-------------- 3 files changed, 60 insertions(+), 45 deletions(-) create mode 100644 src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.spec.js create mode 100644 src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue diff --git a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.spec.js b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.spec.js new file mode 100644 index 000000000..e69de29bb diff --git a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue new file mode 100644 index 000000000..4c9cfc0fc --- /dev/null +++ b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 588244bd7..f8d747ab3 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -11,22 +11,12 @@
- - - + // Components -import buttonQuestion from "@/common-components/button-question/button-question"; import funnelHeader from "@/common-components/funnel-header/funnel-header"; import funnelFooter from "@/common-components/funnel-footer/funnel-footer"; import vehicleBanner from "@/common-components/vehicle-banner/vehicle-banner"; import funnelSubHeader from "@/common-components/funnel-sub-header/funnel-sub-header"; +import cashOrInsuranceQuestion from "./cash-or-insurance-question/cash-or-insurance-question"; import { fetchCmsContentForPage } from "@/helpers/cms-content-helper"; -import { settleAllPromises } from "@/helpers/layout-helper"; -import { storeActions } from "@/constants/store-actions"; -import { Form, defineRule } from "vee-validate"; -import { required } from "@/helpers/validation-rules"; -import { errorMessages } from "@/constants/error-messages"; -import { damageLocationsCms } from "@/constants/damage-locations-cms.js"; -import { damageLocationsSelected } from "@/constants/damage-locations-selected.js"; -import { getFunnelCookie } from "@/helpers/heritage-integration/cookie-helper"; +import { Form } from "vee-validate"; -import store from "@/store"; -import baseMixin from "@/mixins/base-mixin"; export default { name: "quote", @@ -71,34 +52,23 @@ export default { vm.setCmsContent(cmsContent); }); }, + data(){ + return { + isInsurance: false, + } + }, methods: { - arePagePrerequisitesValid() { + arePagePrerequisitesValid() { // Need to learn more about how this functions return true; } }, - computed: { - years() { - return ["2011", "2012"]; - }, - answersFromCms() { - return ["Pay on my own", "Pay with insurance"]; - }, - selectedChipCountValues: { - get: function() { - return this.modelValue; - }, - set: function(newValue) { - this.$emit("update:modelValue", newValue); - } - }, - }, components: { funnelHeader, funnelFooter, vehicleBanner, funnelSubHeader, Form, - buttonQuestion + cashOrInsuranceQuestion }, };