This commit is contained in:
Leah Schumann 2023-03-28 13:20:12 -04:00
parent 04854a455c
commit 0bde42e0d2
3 changed files with 8 additions and 4 deletions

View file

@ -29,7 +29,7 @@
<modalButtonMain <modalButtonMain
isPrimary isPrimary
class="w-100" class="w-100"
ref="buttonMain" ref="modalButtonMain"
loaderColor="white" loaderColor="white"
:buttonText="footerButtonText" :buttonText="footerButtonText"
@click-event="validateAndEmit" @click-event="validateAndEmit"
@ -79,7 +79,7 @@ export default {
} }
}, },
resetButtonStyle() { resetButtonStyle() {
this.$refs.buttonMain.resetButtonStyle(); this.$refs.modalButtonMain.resetButtonStyle();
}, },
onModalOpened() { onModalOpened() {
this.onModalOpenedCallback?.(); this.onModalOpenedCallback?.();

View file

@ -161,6 +161,7 @@ export default {
}, },
onModalClosed() { onModalClosed() {
this.internalModel = deepClone(this.modelValue); this.internalModel = deepClone(this.modelValue);
this.resetAlerts();
}, },
resetComponent(updatedServiceZipCodeInfo) { resetComponent(updatedServiceZipCodeInfo) {
// Reset the validation form, setting the initial values // Reset the validation form, setting the initial values
@ -179,6 +180,9 @@ export default {
resetModalButtonStyle() { resetModalButtonStyle() {
this.$refs[this.modalName].resetButtonStyle(); this.$refs[this.modalName].resetButtonStyle();
}, },
resetAlerts() {
this.$refs.addressQuestions.displayVerificationWarning = false;
},
async setMobileLocation() { async setMobileLocation() {
// Validate the Zip Code // Validate the Zip Code
const zipCodeData = await this.getZipCodeData( const zipCodeData = await this.getZipCodeData(

View file

@ -29,7 +29,7 @@
cmsWidgetName="ServiceTypeQuestionWidget" cmsWidgetName="ServiceTypeQuestionWidget"
validationRules="option-required" /> validationRules="option-required" />
<mobileLocationModalQuestions <mobileLocationModalQuestions
v-if="selectedServiceType === 'Mobile'" v-show="selectedServiceType === 'Mobile'"
v-model="mobileLocationQuestions" v-model="mobileLocationQuestions"
:mobileFeePart="mobileFeePart" :mobileFeePart="mobileFeePart"
@updated-mobile-fee-part="setMobileFeePart" @updated-mobile-fee-part="setMobileFeePart"
@ -39,7 +39,7 @@
linkWidgetName="MobileLocationLinkWidget" linkWidgetName="MobileLocationLinkWidget"
modalWidgetName="MobileLocationModalWidget" /> modalWidgetName="MobileLocationModalWidget" />
<textboxQuestion <textboxQuestion
v-if="selectedServiceType === 'Mobile'" v-show="selectedServiceType === 'Mobile'"
ref="mobileLocationQuestionsError" ref="mobileLocationQuestionsError"
v-model="mobileLocationValidationField" v-model="mobileLocationValidationField"
validationRules="mobile-location-required" validationRules="mobile-location-required"