Merge branch 'release/2025.07.31' into nation/CASH-1225
This commit is contained in:
commit
33241a8ecb
1 changed files with 17 additions and 7 deletions
|
|
@ -1394,12 +1394,15 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.selectedTimeSlotInfo.timeSlot.jobMinMinutes == null) {
|
if (this.selectedTimeSlotInfo.timeSlot.jobMinMinutes == null) {
|
||||||
this.selectedTimeSlotInfo.timeSlot.jobMinMinutes = this.isMobileSelected
|
this.selectedTimeSlotInfo = this.getSelectedTimeSlotInfo();
|
||||||
? this.selectableDatesMobile.estimatedServiceMinutesMinimum?.toString()
|
if (this.selectedTimeSlotInfo.timeSlot.jobMinMinutes == null) {
|
||||||
: this.selectableDatesInshop.estimatedServiceMinutesMinimum?.toString();
|
this.selectedTimeSlotInfo.timeSlot.jobMinMinutes = this.isMobileSelected
|
||||||
this.selectedTimeSlotInfo.timeSlot.jobMaxMinutes = this.isMobileSelected
|
? this.selectableDatesMobile.estimatedServiceMinutesMinimum?.toString()
|
||||||
? this.selectableDatesMobile.estimatedServiceMinutesMaximum?.toString()
|
: this.selectableDatesInshop.estimatedServiceMinutesMinimum?.toString();
|
||||||
: this.selectableDatesInshop.estimatedServiceMinutesMaximum?.toString();
|
this.selectedTimeSlotInfo.timeSlot.jobMaxMinutes = this.isMobileSelected
|
||||||
|
? this.selectableDatesMobile.estimatedServiceMinutesMaximum?.toString()
|
||||||
|
: this.selectableDatesInshop.estimatedServiceMinutesMaximum?.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dispatchStoreAction(
|
this.dispatchStoreAction(
|
||||||
|
|
@ -1663,7 +1666,14 @@ export default {
|
||||||
},
|
},
|
||||||
selectedDate(newValue, oldValue) {
|
selectedDate(newValue, oldValue) {
|
||||||
// Clear time slot selection if date selected changes
|
// Clear time slot selection if date selected changes
|
||||||
if (newValue !== oldValue) {
|
const selectedDate = this.getSelectedDateFromStore();
|
||||||
|
if (oldValue && this.appointmentType === AppointmentTypeStrings.MOBILE) {
|
||||||
|
oldValue = `${oldValue}-mobile`;
|
||||||
|
}
|
||||||
|
const hasValueChanged = newValue !== oldValue;
|
||||||
|
const isDateDifferent = (newValue || oldValue) !== selectedDate;
|
||||||
|
|
||||||
|
if (hasValueChanged && isDateDifferent) {
|
||||||
this.selectedTimeSlotInfo = {
|
this.selectedTimeSlotInfo = {
|
||||||
timeSlot: {
|
timeSlot: {
|
||||||
date: null,
|
date: null,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue