Merge branch 'develop' into CASH-1193
This commit is contained in:
commit
45dfbd7c15
2 changed files with 17 additions and 1 deletions
|
|
@ -1169,7 +1169,7 @@ export default {
|
||||||
|
|
||||||
if (this.preSelectedDate) this.selectedDate = this.preSelectedDate;
|
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
|
// if no date is preselected on load, then select the first available
|
||||||
let selectedDateMobile = this.getSelectedDateForMobile();
|
let selectedDateMobile = this.getSelectedDateForMobile();
|
||||||
let selectedDateInshop = this.getSelectedDateForInshop();
|
let selectedDateInshop = this.getSelectedDateForInshop();
|
||||||
|
|
@ -1656,6 +1656,17 @@ export default {
|
||||||
AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF) &&
|
AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF) &&
|
||||||
this.selectedProvider
|
this.selectedProvider
|
||||||
) {
|
) {
|
||||||
|
this.selectedTimeSlotInfo = {
|
||||||
|
timeSlot: {
|
||||||
|
date: null,
|
||||||
|
routeCode: null,
|
||||||
|
startTime: null,
|
||||||
|
endTime: null,
|
||||||
|
jobMaxMinutes: null,
|
||||||
|
jobMinMinutes: null,
|
||||||
|
},
|
||||||
|
isPremiumAppointment: null,
|
||||||
|
};
|
||||||
this.lastSelectedInshopOrDropoffProvider = this.selectedProvider;
|
this.lastSelectedInshopOrDropoffProvider = this.selectedProvider;
|
||||||
}
|
}
|
||||||
this.appointmentType = AppointmentTypeStrings.MOBILE;
|
this.appointmentType = AppointmentTypeStrings.MOBILE;
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,7 @@ export default {
|
||||||
let appointmentTypeCmsWidgetName;
|
let appointmentTypeCmsWidgetName;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
this.selectedDate == null ||
|
||||||
this.appointmentType === AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF ||
|
this.appointmentType === AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF ||
|
||||||
this.appointmentType === AppointmentTypeStrings.IN_SHOP ||
|
this.appointmentType === AppointmentTypeStrings.IN_SHOP ||
|
||||||
this.appointmentType === AppointmentTypeStrings.DROP_OFF
|
this.appointmentType === AppointmentTypeStrings.DROP_OFF
|
||||||
|
|
@ -205,6 +206,10 @@ export default {
|
||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
} else {
|
} else {
|
||||||
|
if (!this.selectedAnswerForTimeSlots && this.selectedRouteCode) {
|
||||||
|
// Clearing selectedRouteCode if no time slot is selected
|
||||||
|
this.resetSelectedTimeSlot();
|
||||||
|
}
|
||||||
appointmentTypeCmsWidgetName = this.selectedRouteCode?.includes(
|
appointmentTypeCmsWidgetName = this.selectedRouteCode?.includes(
|
||||||
PREMIUM_TIME_SLOT_ID_FLAG
|
PREMIUM_TIME_SLOT_ID_FLAG
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue