From 1800f596af8e3f212f6f5b58b43fbbee98668a32 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 8 Apr 2022 16:17:51 -0400 Subject: [PATCH] Added cmsWidgetName attribute to alerts in addressQuestions component to allow 'binding' of the CMS data to the alert --- .../address-questions/address-questions.vue | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue b/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue index a3ffa0974..1067154d2 100644 --- a/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue +++ b/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue @@ -22,15 +22,13 @@ @@ -41,12 +39,10 @@ import textboxQuestion from "@/common-components/textbox-question/textbox-questi import dropdownQuestion from "@/common-components/dropdown-question/dropdown-question"; import alert from "@/ux-components/alert/alert"; import { applicationConfig } from "@/constants/application-config.js"; -import { computed } from 'vue'; import { defineRule } from "vee-validate"; import { required } from "@/helpers/validation-rules"; import { regex } from "@/helpers/validation-rules"; import { errorMessages } from "@/constants/error-messages"; -//import store from "@/store"; // DEFINE VALIDATION RULES defineRule("street-address-required", required(errorMessages.STREET_ADDRESS_REQUIRED)); @@ -150,20 +146,6 @@ export default ({ }, }, methods: { - initializeComponent(cmsContent) { - // this.$refs.autocomplete.initializeComponent(cmsContent[0].QuestionText); - // this.$refs.city.initializeComponent(cmsContent[1].QuestionText); - // this.$refs.state.initializeComponent(cmsContent[2].QuestionText); - // this.$refs.zip.initializeComponent(cmsContent[3].QuestionText); - - // assign alert texts to this component - this.alertHeadlineVerificationWarning = cmsContent[4].HeadlineText; - this.alertCopyVerificationWarning = cmsContent[4].BodyText; - - this.alertHeadlineNoMatchWarning = cmsContent[5].HeadlineText; - this.alertCopyNoMatchWarning = cmsContent[5].BodyText; - }, - setupAddressLookup() { const addressField1 = document.getElementById("autocomplete"); const self = this;