Formatting

This commit is contained in:
Scott Kiener 2025-09-11 15:05:44 -04:00
parent f953e24c29
commit 193d7a8473

View file

@ -118,9 +118,7 @@
<div class="row date-picker-wrapper">
<div class="col-12 col-md-10 col-lg-8 col-xl-7">
<locationAlerts cmsWidgetPrefix="LocationAlert-" ref="locationAlerts" />
<div
v-show="appointmentType"
class="date-picker-header">
<div v-show="appointmentType" class="date-picker-header">
<funnelSubHeader cmsWidgetName="DatePickerSubHeaderWidget" class="mt-5" />
<durationTextBlock
:isSameDay="isSameDay"
@ -650,9 +648,7 @@ export default {
}
},
showTimeSlotQuestion() {
return (
this.selectedDate && this.appointmentTypeFromAppointmentTypeQuestion
)
return this.selectedDate && this.appointmentTypeFromAppointmentTypeQuestion;
},
isMobileStaticRecalibrationApplicable() {
return (
@ -814,16 +810,16 @@ export default {
return [];
},
selectedRouteCodeData() {
console.log('1', JSON.stringify(this.selectedTimeSlotInfo))
console.log("1", JSON.stringify(this.selectedTimeSlotInfo));
if (!this.selectedTimeSlotInfo?.timeSlot?.routeCode) {
console.log('returning null')
console.log("returning null");
return null;
}
console.log('returning data');
console.log("returning data");
return {
routeCode: this.selectedTimeSlotInfo.timeSlot.routeCode,
isPremiumAppointment: this.selectedTimeSlotInfo.isPremiumAppointment
}
isPremiumAppointment: this.selectedTimeSlotInfo.isPremiumAppointment,
};
},
questionText() {
return this.getCmsContent("YourSafeliteShopWidget", "QuestionText");
@ -869,9 +865,12 @@ export default {
},
isOvernightDropoff() {
return (
this.selectedTimeSlotInfo?.timeSlot?.routeCode && this.selectedTimeSlotInfo.timeSlot.routeCode.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF)
this.selectedTimeSlotInfo?.timeSlot?.routeCode &&
this.selectedTimeSlotInfo.timeSlot.routeCode.includes(
RouteCodeFlags.OVERNIGHT_DROP_OFF
)
);
}
},
},
methods: {
splitCopyOnCMSPlaceHolder,
@ -1649,13 +1648,8 @@ export default {
// update apptType based on routeCode to determine if it should be dropoff or inshop
debugLog(`Updating appointment type based on route code.`);
debugLog(`Route code =`, timeSlotObj.routeCode);
debugLog(
`Parsed type = `,
this.getInShopOrDropOffApptType(timeSlotObj.routeCode)
);
this.appointmentType = this.getInShopOrDropOffApptType(
timeSlotObj.routeCode
);
debugLog(`Parsed type = `, this.getInShopOrDropOffApptType(timeSlotObj.routeCode));
this.appointmentType = this.getInShopOrDropOffApptType(timeSlotObj.routeCode);
}
},
getInShopOrDropOffApptType(routeCode) {
@ -1810,7 +1804,7 @@ export default {
}
},
selectedTimeSlotInfo(newValue) {
console.log('heard a change on selectedTimeslotInfo', newValue);
console.log("heard a change on selectedTimeslotInfo", newValue);
this.updateFooterButtonText(newValue);
},
},