CASH-845 tech review changes

This commit is contained in:
AdamCaouetteSafelite 2025-07-18 13:51:04 -04:00
parent 2257ad32a7
commit b7f5be2d80

View file

@ -1171,7 +1171,7 @@ export default {
(this.isServiceableInshop && !selectedDateInshop) || (this.isServiceableInshop && !selectedDateInshop) ||
(this.isServiceableDropoff && !selectedDateInshop) (this.isServiceableDropoff && !selectedDateInshop)
) { ) {
setTimeout(() => { this.$nextTick(() => {
this.$refs.datePicker.showAnotherMonth().then((moreSelectableDates) => { this.$refs.datePicker.showAnotherMonth().then((moreSelectableDates) => {
// update all dates // update all dates
this.selectableDatesInshop.days = this.selectableDatesInshop.days =
@ -1180,7 +1180,7 @@ export default {
moreSelectableDates.mobileTimeSlotsData.days; moreSelectableDates.mobileTimeSlotsData.days;
this.setDisplayWaitList(); this.setDisplayWaitList();
}); });
}, 50); });
} }
if (this.isMobileSelected) { if (this.isMobileSelected) {
this.selectedDate = selectedDateMobile; this.selectedDate = selectedDateMobile;
@ -1599,17 +1599,13 @@ export default {
}, },
updateSelectedProviderAndZipCode(newZipCode, newProvider) { updateSelectedProviderAndZipCode(newZipCode, newProvider) {
this.resetMobileLocation(); this.resetMobileLocation();
this.state = newZipCode.state;
getShopProviderData(newZipCode.zipCode).then((result) => { this.zipCode = newZipCode.zipCode;
this.shopProviderData = result.data; this.zipCodeCtu = newZipCode.zipCodeCtu;
this.state = newZipCode.state; this.zipContainsMilitaryBase = newZipCode.containsMilitaryBase;
this.zipCode = newZipCode.zipCode; this.selectedDate = null;
this.zipCodeCtu = newZipCode.zipCodeCtu; this.selectedProvider = newProvider;
this.zipContainsMilitaryBase = newZipCode.containsMilitaryBase; this.initializeDatePicker();
this.selectedDate = null;
this.selectedProvider = newProvider;
this.initializeDatePicker();
});
}, },
handleAppointmentTypeChange(newAppointmentType) { handleAppointmentTypeChange(newAppointmentType) {
this.updateFooterButtonText(); this.updateFooterButtonText();