CASH-845 big merge of service-location page into schedule page

This commit is contained in:
AdamCaouetteSafelite 2025-07-08 15:50:57 -04:00
parent 1eb0c3e091
commit 751468eb06
3 changed files with 839 additions and 65 deletions

View file

@ -485,7 +485,7 @@ export default {
const response = config.getSelectableDatesCallback(
initialViewStartDate,
initialViewEndDate,
store.getters.order.serviceLocation.provider.providerNumber
config.providerNumber
);
resolve(response);
});

File diff suppressed because it is too large Load diff

View file

@ -33,7 +33,6 @@ export default {
cmsWidgetName: String,
isServiceableMobile: Boolean,
isServiceableInshop: Boolean,
isServiceableDropoff: Boolean,
mobileFeeApplies: Boolean,
labelBold: {
type: Boolean,
@ -52,16 +51,13 @@ export default {
answersToDisplay() {
const shouldShowMobile = this.isServiceableMobile;
const shouldShowInshop = this.isServiceableInshop;
const shouldShowDropoff =
this.isServiceableDropoff && !this.$store.getters.damage.isRepair;
const zipCode = this.zipCode;
var answers = this.answersFromCms
? this.answersFromCms.filter((answer) => {
return (
(answer.Name == AppointmentTypeStrings.IN_SHOP && shouldShowInshop) ||
(answer.Name == AppointmentTypeStrings.MOBILE && shouldShowMobile) ||
(answer.Name == AppointmentTypeStrings.DROP_OFF && shouldShowDropoff)
(answer.Name == AppointmentTypeStrings.MOBILE && shouldShowMobile)
);
})
: [];
@ -88,7 +84,7 @@ export default {
},
isInshopOnly() {
return (
this.isServiceableInshop && !this.isServiceableMobile && !this.isServiceableDropoff
this.isServiceableInshop && !this.isServiceableMobile
);
},
},