From c2c5f17ef7dfb71bbc28ea135fc1a8535d131d99 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Tue, 16 Aug 2022 14:52:16 -0400 Subject: [PATCH 1/3] 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 }, }; From e4ff9dae2f7a9be2c4f2b0c47b6ada6a5f79eda0 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Wed, 17 Aug 2022 10:39:51 -0400 Subject: [PATCH 2/3] CSR-726 | Remove test file Will write tests along with text-block-component --- .../cash-or-insurance-question/cash-or-insurance-question.spec.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.spec.js 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 deleted file mode 100644 index e69de29bb..000000000 From b936152a1dce086bd5971b335f6bc0993d670fc3 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Fri, 19 Aug 2022 09:06:52 -0400 Subject: [PATCH 3/3] CSR-726 | cashOrInsuranceQuestion component --- src/layouts/quote/quote.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index d709b6aaf..7cd0bd182 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -17,6 +17,7 @@ v-model="isInsurance" groupName="CashOrInsuranceQuestion" /> +