mobile validation fixed
This commit is contained in:
hiteshkumar87 2025-05-16 18:35:04 +05:30
parent 85bc78dc27
commit 6e146a4552

View file

@ -306,14 +306,11 @@ export default {
},
isVehicleProtected: this.isVehicleProtected,
isMobileSelected:
this.selectedAppointmentType === AppointmentTypeStrings.MOBILE &&
!this.isMobileLocationOpened,
this.selectedAppointmentType == AppointmentTypeStrings.MOBILE &&
!this.getIsMobileLocationOpened(),
};
},
},
isMobileLocationOpened() {
return this.$refs.mobileLocationQuestions.isMobileLocationOpened;
},
isServiceableMobile() {
if (this.isRecalibrationServiceableMobile !== null) {
return (
@ -759,11 +756,16 @@ export default {
},
displayMobileAddressQuestion(openMobileLocation) {
var mobileLocationQuestionsRef = this.$refs.mobileLocationQuestions;
var isMobileAddressComplete = mobileLocationQuestionsRef.isMobileAddressComplete;
if (isMobileAddressComplete) {
var isMobileAddressComplete = mobileLocationQuestionsRef?.isMobileAddressComplete;
if (isMobileAddressComplete?.()) {
mobileLocationQuestionsRef.isMobileLocationOpened = false;
} else {
mobileLocationQuestionsRef.isMobileLocationOpened = openMobileLocation;
}
},
getIsMobileLocationOpened() {
return this.$refs.mobileLocationQuestions?.isMobileLocationOpened;
},
},
watch: {
zipCode: {