Merge pull request #2952 from Safelite/feature/CASH-1873
CASH-1873: Show waiting modal for Mobile First
This commit is contained in:
commit
f026b5f3f5
1 changed files with 12 additions and 5 deletions
|
|
@ -470,6 +470,10 @@ export default {
|
||||||
shopListButton: shopListButton,
|
shopListButton: shopListButton,
|
||||||
lastSelectedInshopOrDropoffProvider: null,
|
lastSelectedInshopOrDropoffProvider: null,
|
||||||
selectedMobileFirstAppointment: false,
|
selectedMobileFirstAppointment: false,
|
||||||
|
isShowMobileFirstAppt: experimentMixin.methods.hasSettingEqualTo(
|
||||||
|
experimentSettings.SHOW_MOBILE_FIRST_APPT,
|
||||||
|
"true"
|
||||||
|
),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
|
@ -1196,6 +1200,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
async initializeDatePicker() {
|
async initializeDatePicker() {
|
||||||
|
this.isShowMobileFirstAppt && this.showLoadingModal();
|
||||||
|
|
||||||
this.selectedDate = null;
|
this.selectedDate = null;
|
||||||
|
|
||||||
const includeMobileTimeSlots = this.isServiceableMobile;
|
const includeMobileTimeSlots = this.isServiceableMobile;
|
||||||
|
|
@ -1233,6 +1239,8 @@ export default {
|
||||||
this.setDisplayWaitList();
|
this.setDisplayWaitList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.isShowMobileFirstAppt && this.hideLoadingModal();
|
||||||
},
|
},
|
||||||
getScheduleApiResponse,
|
getScheduleApiResponse,
|
||||||
getServiceZipCtuCodeFromStore() {
|
getServiceZipCtuCodeFromStore() {
|
||||||
|
|
@ -1349,6 +1357,9 @@ export default {
|
||||||
showLoadingModal() {
|
showLoadingModal() {
|
||||||
this.$refs.loadingModal.showModal();
|
this.$refs.loadingModal.showModal();
|
||||||
},
|
},
|
||||||
|
hideLoadingModal() {
|
||||||
|
this.$refs.loadingModal.hideModal();
|
||||||
|
},
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
this.navigatingForward = true;
|
this.navigatingForward = true;
|
||||||
var ctu = this.zipCodeCtu;
|
var ctu = this.zipCodeCtu;
|
||||||
|
|
@ -1747,10 +1758,6 @@ export default {
|
||||||
},
|
},
|
||||||
async showMobileFirstModal() {
|
async showMobileFirstModal() {
|
||||||
if (!this.selectedRouteCodeData?.routeCode) {
|
if (!this.selectedRouteCodeData?.routeCode) {
|
||||||
const isShowMobileFirstAppt = experimentMixin.methods.hasSettingEqualTo(
|
|
||||||
experimentSettings.SHOW_MOBILE_FIRST_APPT,
|
|
||||||
"true"
|
|
||||||
);
|
|
||||||
const pmMobileDays = experimentMixin.methods.getSettingValue(
|
const pmMobileDays = experimentMixin.methods.getSettingValue(
|
||||||
experimentSettings.SHOW_PM_MOBILE_DAYS
|
experimentSettings.SHOW_PM_MOBILE_DAYS
|
||||||
);
|
);
|
||||||
|
|
@ -1805,7 +1812,7 @@ export default {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isShowMobileFirstAppt) {
|
if (this.isShowMobileFirstAppt) {
|
||||||
if (firstMobilePMDate && numberOfDaysToFirstMobilePMDate <= pmMobileDays) {
|
if (firstMobilePMDate && numberOfDaysToFirstMobilePMDate <= pmMobileDays) {
|
||||||
preSelectedMobileAppointment = firstMobilePMAppt;
|
preSelectedMobileAppointment = firstMobilePMAppt;
|
||||||
} else if (
|
} else if (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue