From d9360bc04f358c787ea4773fe88d3c197580b6a2 Mon Sep 17 00:00:00 2001 From: Chris Redelinghuys Date: Tue, 29 Jul 2025 10:18:13 -0400 Subject: [PATCH 1/3] CASH-1291: Calendar not reloading when switching inshop/mobile --- src/layouts/schedule/schedule.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 649c93201..7073c5426 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -1173,7 +1173,7 @@ export default { if (this.preSelectedDate) this.selectedDate = this.preSelectedDate; - if (!this.selectedDate) { + if (!this.preSelectedDate) { // if no date is preselected on load, then select the first available let selectedDateMobile = this.getSelectedDateForMobile(); let selectedDateInshop = this.getSelectedDateForInshop(); From 92d111877cb927ca0ce333fe4397726d60574135 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Tue, 29 Jul 2025 15:16:31 -0400 Subject: [PATCH 2/3] Revert some of 1291 --- .../schedule/time-slot-question/time-slot-question.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/layouts/schedule/time-slot-question/time-slot-question.vue b/src/layouts/schedule/time-slot-question/time-slot-question.vue index df37d4e09..97b334821 100644 --- a/src/layouts/schedule/time-slot-question/time-slot-question.vue +++ b/src/layouts/schedule/time-slot-question/time-slot-question.vue @@ -187,6 +187,7 @@ export default { let appointmentTypeCmsWidgetName; if ( + this.selectedDate == null || this.appointmentType === AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF || this.appointmentType === AppointmentTypeStrings.IN_SHOP || this.appointmentType === AppointmentTypeStrings.DROP_OFF @@ -205,6 +206,10 @@ export default { // ); // } } else { + if (!this.selectedAnswerForTimeSlots && this.selectedRouteCode) { + // Clearing selectedRouteCode if no time slot is selected + this.resetSelectedTimeSlot(); + } appointmentTypeCmsWidgetName = this.selectedRouteCode?.includes( PREMIUM_TIME_SLOT_ID_FLAG ) From b7cad29c3d781274dd06bca71b06e20b19ca0990 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Tue, 29 Jul 2025 16:24:36 -0400 Subject: [PATCH 3/3] CASH-1303 | Fix --- src/layouts/schedule/schedule.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 7073c5426..948662e91 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -1660,6 +1660,17 @@ export default { AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF) && this.selectedProvider ) { + this.selectedTimeSlotInfo = { + timeSlot: { + date: null, + routeCode: null, + startTime: null, + endTime: null, + jobMaxMinutes: null, + jobMinMinutes: null, + }, + isPremiumAppointment: null, + }; this.lastSelectedInshopOrDropoffProvider = this.selectedProvider; } this.appointmentType = AppointmentTypeStrings.MOBILE;