Merge pull request #2161 from Safelite/Feature/Digital/CSR-2338

CSR-2338
This commit is contained in:
hiteshkumar87 2024-12-06 23:32:57 +05:30 committed by GitHub
commit 2691eade4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -97,6 +97,7 @@ export default {
"updated-mobile-fee-part", "updated-mobile-fee-part",
"updated-contains-military-base", "updated-contains-military-base",
"updated-bill-to-account-number", "updated-bill-to-account-number",
"mobileLocationSelected",
], ],
data() { data() {
return { return {
@ -286,13 +287,15 @@ export default {
// update the page level model // update the page level model
this.$emit("update:modelValue", this.internalModel); this.$emit("update:modelValue", this.internalModel);
this.closeModal(); //Page advance to Schedule page
this.$emit("mobileLocationSelected");
} }
} else { } else {
// Update the page level model // Update the page level model
this.$emit("update:modelValue", this.internalModel); this.$emit("update:modelValue", this.internalModel);
this.closeModal(); //Page advance to Schedule page
this.$emit("mobileLocationSelected");
} }
}, },
}, },
@ -305,6 +308,9 @@ export default {
deep: true, deep: true,
}, },
}, },
unmounted() {
if (this.isModalOpened) this.closeModal();
},
components: { components: {
textLink, textLink,
modal, modal,

View file

@ -96,7 +96,8 @@
validationRules="mobile-location-required" validationRules="mobile-location-required"
ref="mobileLocationQuestions" ref="mobileLocationQuestions"
linkWidgetName="MobileLocationLinkWidget" linkWidgetName="MobileLocationLinkWidget"
modalWidgetName="MobileLocationModalWidget" /> modalWidgetName="MobileLocationModalWidget"
@mobileLocationSelected="forwardButtonAction" />
<shopQuestion <shopQuestion
ref="shopQuestion" ref="shopQuestion"