diff --git a/src/layouts/schedule-page/schedule-page.vue b/src/layouts/schedule-page/schedule-page.vue
index 215654b0..590b319c 100644
--- a/src/layouts/schedule-page/schedule-page.vue
+++ b/src/layouts/schedule-page/schedule-page.vue
@@ -329,6 +329,7 @@ export default {
return {
inShopAvailabilityRating: 'high',
inShopDatesData: [],
+ isDatePickerRefreshing: false,
isMobileView: false,
mobileDatesData: [],
mobileFeePart: null,
@@ -362,7 +363,8 @@ export default {
const serviceLocationPreReqs = serviceLocationToUse.zipCode !== null
&& serviceLocationToUse.zipCodeCtu !== null
&& serviceLocationToUse.appointmentType !== null
- && (validMobileAppointmentType || validInShopAppointmentType);
+ && (validMobileAppointmentType || validInShopAppointmentType)
+ && !this.isDatePickerRefreshing;
const damageInfo = useMainStore().order.damage.isRepair
|| (useMainStore().order.lineItems?.glassParts != null && useMainStore().order.lineItems.glassParts.length > 0);
@@ -688,11 +690,12 @@ export default {
}
},
async refreshDatePicker() {
- console.log('refresh date picker...');
this.resetLocalFlags();
+ this.isDatePickerRefreshing = true;
await this.getDatePickerInitialData().then((data) => {
this.selectableDatesData = data.initialShopTimeSlotsResponse;
this.$refs.datePicker.initializeComponent(data);
+ this.isDatePickerRefreshing = false;
showIssLoadingModal(false);
});
},
diff --git a/src/layouts/schedule-page/service-location/service-location.vue b/src/layouts/schedule-page/service-location/service-location.vue
index 1aef10b7..d5559a95 100644
--- a/src/layouts/schedule-page/service-location/service-location.vue
+++ b/src/layouts/schedule-page/service-location/service-location.vue
@@ -96,13 +96,14 @@