Merge pull request #2669 from Safelite/feature/CASH-845-stage-6
CASH-845 a few more bug fixes
This commit is contained in:
commit
ef99e473a7
2 changed files with 31 additions and 8 deletions
|
|
@ -335,11 +335,32 @@ export default {
|
|||
this.estimatedServiceMinutesMaximum
|
||||
);
|
||||
|
||||
return `${inshopDurationTextWithoutTime} ${inshopDurationTime}`;
|
||||
if (this.estimatedServiceMinutesMinimum && this.estimatedServiceMinutesMaximum) {
|
||||
return `${inshopDurationTextWithoutTime} ${inshopDurationTime}`;
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
mobileDurationText() {
|
||||
const mobileDurationTextWithoutTime = this.getCmsContent(
|
||||
"TimeSlotModalQuestion",
|
||||
cmsWidgetFieldMappings.DURATION
|
||||
);
|
||||
|
||||
const mobileDurationTime = getDisplayTextForDurationLength(
|
||||
this.estimatedServiceMinutesMinimum,
|
||||
this.estimatedServiceMinutesMaximum
|
||||
);
|
||||
|
||||
if (this.estimatedServiceMinutesMinimum && this.estimatedServiceMinutesMaximum) {
|
||||
return `${mobileDurationTextWithoutTime} ${mobileDurationTime}`;
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
durationTextBlockCopy() {
|
||||
if (this.appointmentType === AppointmentTypeStrings.MOBILE) {
|
||||
return null;
|
||||
return this.mobileDurationText;
|
||||
} else if (this.appointmentType === AppointmentTypeStrings.IN_SHOP) {
|
||||
return this.inshopDurationText;
|
||||
} else if (
|
||||
|
|
|
|||
|
|
@ -1151,7 +1151,7 @@ export default {
|
|||
});
|
||||
datePickerInitialData.pricingByDayBasePrice = this.pricingByDayBasePrice;
|
||||
datePickerInitialData.pricingByDayUpcharge = this.pricingByDayUpcharge;
|
||||
this.$refs.datePicker.initializeComponent(datePickerInitialData);
|
||||
await this.$refs.datePicker.initializeComponent(datePickerInitialData);
|
||||
this.selectableDatesInshop =
|
||||
datePickerInitialData.initialShopTimeSlotsResponse.inshopTimeSlotsData;
|
||||
this.selectableDatesMobile =
|
||||
|
|
@ -1182,11 +1182,13 @@ export default {
|
|||
});
|
||||
});
|
||||
}
|
||||
if (this.isMobileSelected) {
|
||||
this.selectedDate = selectedDateMobile;
|
||||
} else {
|
||||
this.selectedDate = selectedDateInshop;
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
if (this.isMobileSelected) {
|
||||
this.selectedDate = selectedDateMobile;
|
||||
} else {
|
||||
this.selectedDate = selectedDateInshop;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
getScheduleApiResponse,
|
||||
|
|
|
|||
Loading…
Reference in a new issue