Merge pull request #1054 from Safelite/feature/CSR-1205

Feature/csr 1205
This commit is contained in:
Leah Schumann 2023-04-07 13:14:25 -04:00 committed by GitHub
commit a3aaf1283e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,6 +135,7 @@ export default {
mobileFeePart: null, mobileFeePart: null,
zipContainsMilitaryBase: false, zipContainsMilitaryBase: false,
selectedAppointmentType: null, selectedAppointmentType: null,
providerNumber: null,
}; };
}, },
async beforeRouteEnter(to, from, next) { async beforeRouteEnter(to, from, next) {
@ -192,6 +193,7 @@ export default {
if (newValue.zipCode !== this.zipCode) { if (newValue.zipCode !== this.zipCode) {
this.resetMobileLocation(); this.resetMobileLocation();
this.selectedAppointmentType = null; this.selectedAppointmentType = null;
this.providerNumber = null;
} }
this.state = newValue.state; this.state = newValue.state;
@ -220,11 +222,11 @@ export default {
this.zipCode = newValue.addressQuestions.zipCode; this.zipCode = newValue.addressQuestions.zipCode;
this.isVehicleProtected = newValue.isVehicleProtected; this.isVehicleProtected = newValue.isVehicleProtected;
if ( if (newValue.zipCode !== this.zipCode) {
newValue.zipCode !== this.zipCode && if (!this.selectedAppointmentType == "Mobile") {
!this.selectedAppointmentType == "Mobile" this.selectedAppointmentType = null;
) { }
this.selectedAppointmentType = null; this.providerNumber = null;
} }
}, },
}, },