diff --git a/src/digital-components/modal/modal.vue b/src/digital-components/modal/modal.vue
index 013a42168..ff02fb67c 100644
--- a/src/digital-components/modal/modal.vue
+++ b/src/digital-components/modal/modal.vue
@@ -2,7 +2,7 @@
import buttonMain from "@/ux-components/button-main/button-main";
+import { Modal } from "bootstrap";
export default {
name: "modal",
props: {
cmsWidgetName: String,
- onShownCallback: {
+ onModalOpenedCallback: {
type: Function,
},
@@ -59,6 +60,15 @@ export default {
// if undefined, footer button closes modal
},
},
+ data() {
+ return {
+ myModal: null,
+ }
+ },
+ mounted() {
+ this.myModal = new Modal(document.getElementById(this.cmsWidgetName));
+
+ },
computed: {
ModalHeadline() {
return this.getCmsContent(this.cmsWidgetName, "HeaderText");
@@ -86,8 +96,11 @@ export default {
resetButtonStyle() {
this.$refs.buttonMain.resetButtonStyle();
},
+ openModal() {
+ this.myModal.show();
+ },
closeModal() {
- this.$refs.modalXButton.click();
+ this.myModal.hide();
},
async footerButtonClick() {
if (this.footerButtonCallback) {
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 2f21e49f6..33d17b1e5 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
@@ -117,7 +117,10 @@ export default {
}),
},
validationRules: String,
- captureApartmentNumberOrBusinessName: false,
+ captureApartmentNumberOrBusinessName: {
+ type: Boolean,
+ default: false,
+ },
},
data() {
return {
diff --git a/src/layouts/service-location/mobile-location-modal-question/mobile-location-modal-question.vue b/src/layouts/service-location/mobile-location-modal-question/mobile-location-modal-question.vue
new file mode 100644
index 000000000..f3d83fe3b
--- /dev/null
+++ b/src/layouts/service-location/mobile-location-modal-question/mobile-location-modal-question.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue
index 418a1ec2e..4d0a527c6 100644
--- a/src/layouts/service-location/service-location.vue
+++ b/src/layouts/service-location/service-location.vue
@@ -10,6 +10,10 @@ fmg
textboxQuestionWidgetName="ServiceZipQuestionWidget"
alertNonServiceableZipWidgetName="AlertNonServiceableZipWidget"
alertInvalidZipWidgetName="AlertInvalidZipWidget" />
+
// Components
import serviceZipModalQuestion from "@/layouts/service-location/service-zip-modal-question/service-zip-modal-question";
+import mobileLocationModalQuestion from "@/layouts/service-location/mobile-location-modal-question/mobile-location-modal-question";
import funnelHeader from "@/fmg-components/funnel-header/funnel-header";
import funnelFooter from "@/fmg-components/funnel-footer/funnel-footer";
import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-header";
@@ -65,6 +70,7 @@ export default {
},
components: {
serviceZipModalQuestion,
+ mobileLocationModalQuestion,
funnelHeader,
funnelFooter,
funnelSubHeader,
diff --git a/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue b/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue
index 78068a835..d05cca807 100644
--- a/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue
+++ b/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue
@@ -1,17 +1,18 @@
@@ -87,6 +88,9 @@ export default {
alertInvalidZipWidgetName: String,
},
methods: {
+ openZipCodeModal() {
+ this.$refs.zipCodeInputModal.myModal.show();
+ },
getZipFromStore() {
return this.$store.getters.order.serviceLocation.zipCode;
},