Merge pull request #3098 from Safelite/rlsmerge/2026.03.12-to-develop
Rlsmerge 2026.03.12-to-develop
This commit is contained in:
commit
d332fcd212
2 changed files with 16 additions and 17 deletions
|
|
@ -80,7 +80,6 @@ export default {
|
||||||
confirmedAppointment: false,
|
confirmedAppointment: false,
|
||||||
multiLocationRadioButton: multiLocationRadioButton,
|
multiLocationRadioButton: multiLocationRadioButton,
|
||||||
selectedValue: null,
|
selectedValue: null,
|
||||||
experimentSettings: "",
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -124,8 +123,20 @@ export default {
|
||||||
setIsModalOpen(isOpen) {
|
setIsModalOpen(isOpen) {
|
||||||
this.isModalOpen = isOpen;
|
this.isModalOpen = isOpen;
|
||||||
},
|
},
|
||||||
captureExperimentSettings(settingsString) {
|
selectedSlotEventValue() {
|
||||||
this.experimentSettings = settingsString;
|
const daysUntilAppointment =
|
||||||
|
(new Date(this.selectedAppointment.date) - new Date()) / (1000 * 60 * 60 * 24);
|
||||||
|
const isAM = this.selectedAppointment.timeSlot.startTime < "12:00:00";
|
||||||
|
return (
|
||||||
|
"AM: " +
|
||||||
|
isAM +
|
||||||
|
" | " +
|
||||||
|
"PM: " +
|
||||||
|
!isAM +
|
||||||
|
" | " +
|
||||||
|
"Days: " +
|
||||||
|
Math.ceil(daysUntilAppointment)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
pushEvent() {
|
pushEvent() {
|
||||||
let gaAction = this.confirmedAppointment ? this.GaActions.YES : this.GaActions.NO;
|
let gaAction = this.confirmedAppointment ? this.GaActions.YES : this.GaActions.NO;
|
||||||
|
|
@ -143,7 +154,7 @@ export default {
|
||||||
this.mobileAppointmentOption.date,
|
this.mobileAppointmentOption.date,
|
||||||
true,
|
true,
|
||||||
null,
|
null,
|
||||||
this.experimentSettings
|
this.selectedSlotEventValue()
|
||||||
);
|
);
|
||||||
} else if (
|
} else if (
|
||||||
this.selectedValue?.toLowerCase() === "inshop" &&
|
this.selectedValue?.toLowerCase() === "inshop" &&
|
||||||
|
|
@ -157,7 +168,7 @@ export default {
|
||||||
this.inshopAppointmentOption.date,
|
this.inshopAppointmentOption.date,
|
||||||
true,
|
true,
|
||||||
null,
|
null,
|
||||||
this.experimentSettings
|
this.selectedSlotEventValue()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2037,15 +2037,6 @@ export default {
|
||||||
let maxDayRangeToShowAnyTimeslot = experimentMixin.methods.getSettingValue(
|
let maxDayRangeToShowAnyTimeslot = experimentMixin.methods.getSettingValue(
|
||||||
experimentSettings.SHOW_NO_AVAILABILE_DAYS_MULTI_LOCATION
|
experimentSettings.SHOW_NO_AVAILABILE_DAYS_MULTI_LOCATION
|
||||||
);
|
);
|
||||||
let experimentSettingsString =
|
|
||||||
"ShowPm:" +
|
|
||||||
maxDayRangeToShowPmTimeslot +
|
|
||||||
"|" +
|
|
||||||
"NoPm:" +
|
|
||||||
maxDayRangeToShowNoPmTimeslot +
|
|
||||||
"|" +
|
|
||||||
"NoAvail:" +
|
|
||||||
maxDayRangeToShowAnyTimeslot;
|
|
||||||
let promotedMobileAppointment = null;
|
let promotedMobileAppointment = null;
|
||||||
let promotedInshopAppointment = null;
|
let promotedInshopAppointment = null;
|
||||||
const todaysDate = getTodayDate();
|
const todaysDate = getTodayDate();
|
||||||
|
|
@ -2167,9 +2158,6 @@ export default {
|
||||||
promotedInshopAppointment
|
promotedInshopAppointment
|
||||||
);
|
);
|
||||||
this.$refs.multiLocationModal.openModal();
|
this.$refs.multiLocationModal.openModal();
|
||||||
this.$refs.multiLocationModal.captureExperimentSettings(
|
|
||||||
experimentSettingsString
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue