diff --git a/src/digital-components/modal/modal.vue b/src/digital-components/modal/modal.vue index 238f63aa6..30c47e578 100644 --- a/src/digital-components/modal/modal.vue +++ b/src/digital-components/modal/modal.vue @@ -51,23 +51,17 @@ export default { type: Function, }, }, - data() { - return { - modal: null, - }; - }, - mounted() { - this.modal = new Modal(document.getElementById(this.modalId)); - }, methods: { resetButtonStyle() { this.$refs.buttonMain.resetButtonStyle(); }, openModal() { - this.modal.show(); + const modal = Modal.getOrCreateInstance(document.getElementById(this.modalId)); + modal.show(); }, closeModal() { - this.modal.hide(); + const modal = Modal.getInstance(document.getElementById(this.modalId)); + modal.hide(); }, }, components: { diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index ac963ca0f..bbbbb0bd7 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -1,6 +1,7 @@ diff --git a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue index 6102373aa..dbce77065 100644 --- a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue +++ b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue @@ -30,9 +30,9 @@ v-model="mobileLocationQuestionModel.addressQuestions" captureApartmentNumberOrBusinessName="true" /> + cmsWidgetName="VehicleProtectedQuestionWidget" /> @@ -55,7 +55,6 @@ import baseMixin from "@/mixins/base-mixin.js"; // Define Validation Rules - export default { name: "mobile-location-modal-questions", emits: ["update:modelValue"], // The component emits an event @@ -68,9 +67,9 @@ export default { const modalForm = useForm(); return { - modalForm, - } - }, + modalForm, + }; + }, props: { modelValue: { type: Object, @@ -100,7 +99,7 @@ export default { }, mobileLocationLinkText() { return this.getCmsContent(this.cmsWidgetName, "BodyText"); - }, + }, getModalId() { return "#" + this.modalWidgetName; }, @@ -139,7 +138,6 @@ export default { } else { this.$refs.mobileLocationModal.resetButtonStyle(); } - }, }, @@ -169,5 +167,4 @@ export default { .address-questions { margin-top: 0em; } - diff --git a/src/layouts/service-location/mobile-location-modal-questions/vehicle-protected-question/vehicle-protected-question.vue b/src/layouts/service-location/mobile-location-modal-questions/vehicle-protected-question/vehicle-protected-question.vue index 45b80caa6..3f7636fd1 100644 --- a/src/layouts/service-location/mobile-location-modal-questions/vehicle-protected-question/vehicle-protected-question.vue +++ b/src/layouts/service-location/mobile-location-modal-questions/vehicle-protected-question/vehicle-protected-question.vue @@ -10,8 +10,6 @@ isRequired /> - -