CASH-1513: Get selected timeslot when switching service type

This commit is contained in:
Chris Redelinghuys 2025-09-19 11:01:31 -04:00
parent e4ae34d995
commit 528769aec1

View file

@ -650,15 +650,14 @@ export default {
} }
}, },
showTimeSlotQuestion() { showTimeSlotQuestion() {
var selectedDate = this.selectedDate;
if ( if (
this.selectedDate && this.selectedDate &&
this.selectedDate.includes("mobile") && this.selectedDate.includes("mobile") &&
!this.isMobileSelected !this.isMobileSelected
) { ) {
selectedDate = this.getSelectedDate(); this.getNewSelectedDate();
} }
return selectedDate && this.appointmentTypeFromAppointmentTypeQuestion; return this.selectedDate && this.appointmentTypeFromAppointmentTypeQuestion;
}, },
isMobileStaticRecalibrationApplicable() { isMobileStaticRecalibrationApplicable() {
return ( return (
@ -1787,6 +1786,9 @@ export default {
this.selectedDate = this.getSelectedDate(); this.selectedDate = this.getSelectedDate();
this.setDisplayWaitList(); this.setDisplayWaitList();
}, },
getNewSelectedDate() {
this.selectedDate = this.getSelectedDate();
},
}, },
watch: { watch: {
appointmentTypeFromAppointmentTypeQuestion: { appointmentTypeFromAppointmentTypeQuestion: {