CASH-2034: fixes
This commit is contained in:
parent
6c845aaaa5
commit
d767d90847
1 changed files with 9 additions and 6 deletions
|
|
@ -621,7 +621,10 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
isMobileSelected() {
|
isMobileSelected() {
|
||||||
return this.appointmentType == AppointmentTypeStrings.MOBILE;
|
return (
|
||||||
|
this.appointmentType == AppointmentTypeStrings.MOBILE ||
|
||||||
|
(this.isServiceableMobile && !this.isServiceableInshop)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
isServiceableMobile() {
|
isServiceableMobile() {
|
||||||
if (this.isRecalibrationServiceableMobile !== null) {
|
if (this.isRecalibrationServiceableMobile !== null) {
|
||||||
|
|
@ -1140,7 +1143,7 @@ export default {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShopSelected(shopQuestionPopUpData) {
|
async onShopSelected(shopQuestionPopUpData) {
|
||||||
this.resetWaitlist();
|
this.resetWaitlist();
|
||||||
this.preSelectedDate = null;
|
this.preSelectedDate = null;
|
||||||
this.shopProviderData = shopQuestionPopUpData.shopProviderData;
|
this.shopProviderData = shopQuestionPopUpData.shopProviderData;
|
||||||
|
|
@ -1148,6 +1151,8 @@ export default {
|
||||||
const selectedProvider = this.shopProviderData.shopProviders.find((shopProvider) => {
|
const selectedProvider = this.shopProviderData.shopProviders.find((shopProvider) => {
|
||||||
return shopProvider.providerNumber === shopQuestionPopUpData.selectedProviderNumber;
|
return shopProvider.providerNumber === shopQuestionPopUpData.selectedProviderNumber;
|
||||||
});
|
});
|
||||||
|
const didProviderNumberChange =
|
||||||
|
oldProvider?.providerNumber !== selectedProvider.providerNumber;
|
||||||
|
|
||||||
// No zipCodeData comes back if zip was not changed
|
// No zipCodeData comes back if zip was not changed
|
||||||
if (shopQuestionPopUpData.zipCodeData) {
|
if (shopQuestionPopUpData.zipCodeData) {
|
||||||
|
|
@ -1156,13 +1161,12 @@ export default {
|
||||||
selectedProvider
|
selectedProvider
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const didProviderNumberChange =
|
|
||||||
oldProvider?.providerNumber !== selectedProvider.providerNumber;
|
|
||||||
if (didProviderNumberChange) {
|
if (didProviderNumberChange) {
|
||||||
this.updateSelectedProvider(selectedProvider);
|
this.updateSelectedProvider(selectedProvider);
|
||||||
this.initializeDatePicker();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
await this.initializeDatePicker();
|
||||||
|
this.setSelectedDateToFirstAvailable();
|
||||||
},
|
},
|
||||||
async getMoreScheduleData(startDate, endDate) {
|
async getMoreScheduleData(startDate, endDate) {
|
||||||
// called only when "View more dates" is clicked; not on initial page load
|
// called only when "View more dates" is clicked; not on initial page load
|
||||||
|
|
@ -1710,7 +1714,6 @@ export default {
|
||||||
this.zipContainsMilitaryBase = newZipCode.containsMilitaryBase;
|
this.zipContainsMilitaryBase = newZipCode.containsMilitaryBase;
|
||||||
this.selectedDate = null;
|
this.selectedDate = null;
|
||||||
this.selectedProvider = newProvider;
|
this.selectedProvider = newProvider;
|
||||||
this.initializeDatePicker();
|
|
||||||
},
|
},
|
||||||
handleAppointmentTypeChange(newAppointmentType) {
|
handleAppointmentTypeChange(newAppointmentType) {
|
||||||
this.updateFooterButtonText();
|
this.updateFooterButtonText();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue