CASH-1790: refactoring and restoring watch on time-slot-question
(cherry picked from commit 290ea914e2)
This commit is contained in:
parent
5e0bee779f
commit
260448886f
2 changed files with 7 additions and 11 deletions
|
|
@ -1200,8 +1200,6 @@ export default {
|
|||
async initializeDatePicker() {
|
||||
this.isShowMobileFirstAppt && this.showLoadingModal();
|
||||
|
||||
this.selectedDate = null;
|
||||
|
||||
const includeMobileTimeSlots = this.isServiceableMobile;
|
||||
const includeInshopTimeSlots = this.isServiceableInshop || this.isServiceableDropoff;
|
||||
const datePickerInitialData = await this.$refs.datePicker.loadInitialData({
|
||||
|
|
@ -1594,10 +1592,8 @@ export default {
|
|||
|
||||
// check if date actually changed
|
||||
if (previousDate !== date.dateString) {
|
||||
this.handleDateChanged({
|
||||
newDate: date.dateString,
|
||||
oldDate: previousDate,
|
||||
});
|
||||
this.selectedTimeSlotInfo = this.getEmptyTimeSlot();
|
||||
this.updateFooterButtonText(this.selectedTimeSlotInfo);
|
||||
}
|
||||
|
||||
// TODO: REMOVE AS PART OF CASH-1634
|
||||
|
|
@ -1608,11 +1604,6 @@ export default {
|
|||
// this.includePricingByDayUpcharge = false;
|
||||
// }
|
||||
},
|
||||
handleDateChanged(newDate) {
|
||||
// Clear time slot selection when date changes
|
||||
this.selectedTimeSlotInfo = this.getEmptyTimeSlot();
|
||||
this.updateFooterButtonText(this.selectedTimeSlotInfo);
|
||||
},
|
||||
getEmptyTimeSlot() {
|
||||
return {
|
||||
timeSlot: {
|
||||
|
|
|
|||
|
|
@ -185,6 +185,11 @@ export default {
|
|||
selectedRouteCodeData(newValue) {
|
||||
this.updateDropoffAndTimeSlotAnswersFromSelectedRouteCodeData(newValue);
|
||||
},
|
||||
timeSlotsForSelectedDate() {
|
||||
this.selectedAnswerForDropOffOrInshop = null;
|
||||
this.selectedAnswerForTimeSlots = null;
|
||||
this.autoSelectTimeSlotIfOnlyOneIsAvailable();
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
supplementalInformationBlock() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue