From be6ed5099b5328ebd8e73e395b9571b347cf0251 Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Fri, 22 Nov 2024 19:03:11 +0530 Subject: [PATCH] CSR-2338 Page advance to Schedule page --- .../mobile-location-modal-questions.vue | 10 ++++++++-- src/layouts/service-location/service-location.vue | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) 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 89e095279..84087cb6e 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 @@ -97,6 +97,7 @@ export default { "updated-mobile-fee-part", "updated-contains-military-base", "updated-bill-to-account-number", + "mobileLocationSelected", ], data() { return { @@ -286,13 +287,15 @@ export default { // update the page level model this.$emit("update:modelValue", this.internalModel); - this.closeModal(); + //Page advance to Schedule page + this.$emit("mobileLocationSelected"); } } else { // Update the page level model this.$emit("update:modelValue", this.internalModel); - this.closeModal(); + //Page advance to Schedule page + this.$emit("mobileLocationSelected"); } }, }, @@ -305,6 +308,9 @@ export default { deep: true, }, }, + unmounted() { + if (this.isModalOpened) this.closeModal(); + }, components: { textLink, modal, diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index 9a6e649ec..0496df54c 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -96,7 +96,8 @@ validationRules="mobile-location-required" ref="mobileLocationQuestions" linkWidgetName="MobileLocationLinkWidget" - modalWidgetName="MobileLocationModalWidget" /> + modalWidgetName="MobileLocationModalWidget" + @mobileLocationSelected="forwardButtonAction" />