Merge pull request #2533 from Safelite/feature/Digital/CASH-712

CASH-712
This commit is contained in:
hiteshkumar87 2025-05-19 22:11:21 +05:30 committed by GitHub
commit b69ec737df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -755,13 +755,13 @@ export default {
setMobileLocationInValid(isMobileLocationInValid) { setMobileLocationInValid(isMobileLocationInValid) {
this.isMobileAddressValid = !isMobileLocationInValid; this.isMobileAddressValid = !isMobileLocationInValid;
}, },
displayMobileAddressQuestion() { displayMobileAddressQuestion(openMobileLocation) {
var mobileLocationQuestionsRef = this.$refs.mobileLocationQuestions; var mobileLocationQuestionsRef = this.$refs.mobileLocationQuestions;
var isMobileAddressComplete = mobileLocationQuestionsRef?.isMobileAddressComplete; var isMobileAddressComplete = mobileLocationQuestionsRef?.isMobileAddressComplete;
if (isMobileAddressComplete?.()) { if (isMobileAddressComplete?.()) {
mobileLocationQuestionsRef.isMobileLocationOpened = false; mobileLocationQuestionsRef.isMobileLocationOpened = false;
} else { } else {
mobileLocationQuestionsRef.isMobileLocationOpened = true; mobileLocationQuestionsRef.isMobileLocationOpened = openMobileLocation;
} }
}, },
getIsMobileLocationOpened() { getIsMobileLocationOpened() {
@ -791,9 +791,10 @@ export default {
this.selectedProvider = new Provider( this.selectedProvider = new Provider(
this.shopProviderData.mobileProviderNumber this.shopProviderData.mobileProviderNumber
); );
this.displayMobileAddressQuestion(); this.displayMobileAddressQuestion(true);
} else { } else {
this.selectedProvider = new Provider(); this.selectedProvider = new Provider();
this.displayMobileAddressQuestion(false);
} }
}, },
}, },