update for loading modal
some unused code clean up repair/replace added to cms
This commit is contained in:
parent
9902c70b66
commit
372213eefd
2 changed files with 7 additions and 13 deletions
|
|
@ -63,8 +63,7 @@
|
||||||
<suggestTimeslotModal
|
<suggestTimeslotModal
|
||||||
:ref="SUGGEST_TIMESLOT_MODAL_REF_NAME"
|
:ref="SUGGEST_TIMESLOT_MODAL_REF_NAME"
|
||||||
cmsWidgetName="SuggestTimeslotModal"
|
cmsWidgetName="SuggestTimeslotModal"
|
||||||
@confirmAppointmentClicked="autoSelectTimeslotConfirmed"
|
@confirmAppointmentClicked="autoSelectTimeslotConfirmed" />
|
||||||
@seeMoreOptionsClicked="seeMoreOptions"/>
|
|
||||||
</Form>
|
</Form>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -488,6 +487,7 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.mainStore.saveSchedule(timeSlotToUse);
|
this.mainStore.saveSchedule(timeSlotToUse);
|
||||||
|
showIssLoadingModal(true);
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
this.navigationScenarios.CLICKED_FORWARD,
|
this.navigationScenarios.CLICKED_FORWARD,
|
||||||
this.$route
|
this.$route
|
||||||
|
|
@ -609,6 +609,7 @@ export default {
|
||||||
date: firstPmMobileDateWithTimeSlots ? firstPmMobileDateWithTimeSlots.date : firstMobileDateWithTimeSlots.date,
|
date: firstPmMobileDateWithTimeSlots ? firstPmMobileDateWithTimeSlots.date : firstMobileDateWithTimeSlots.date,
|
||||||
estimatedServiceMinutesMax,
|
estimatedServiceMinutesMax,
|
||||||
estimatedServiceMinutesMin,
|
estimatedServiceMinutesMin,
|
||||||
|
isRepair: this.mainStore.order.damage.isRepair,
|
||||||
mobileProviderNumber: mobileFirstObject.mobileProviderNumber,
|
mobileProviderNumber: mobileFirstObject.mobileProviderNumber,
|
||||||
timeSlot: firstPmMobileDateWithTimeSlots ? firstPmMobileDateWithTimeSlots.afternoonTimeSlots[0]
|
timeSlot: firstPmMobileDateWithTimeSlots ? firstPmMobileDateWithTimeSlots.afternoonTimeSlots[0]
|
||||||
: (firstMobileDateWithTimeSlots.morningTimeSlots[0] || firstMobileDateWithTimeSlots.afternoonTimeSlots[0]),
|
: (firstMobileDateWithTimeSlots.morningTimeSlots[0] || firstMobileDateWithTimeSlots.afternoonTimeSlots[0]),
|
||||||
|
|
@ -622,8 +623,6 @@ export default {
|
||||||
const experiment = this.getExperimentByName(experimentUniverses.ISS_MOBILE_FIRST_APPOINTMENTS);
|
const experiment = this.getExperimentByName(experimentUniverses.ISS_MOBILE_FIRST_APPOINTMENTS);
|
||||||
if (experiment && !experiment.isExposed) {
|
if (experiment && !experiment.isExposed) {
|
||||||
this.mainStore.logMobileFirstExperimentExposure();
|
this.mainStore.logMobileFirstExperimentExposure();
|
||||||
} else {
|
|
||||||
console.log('Mobile experiment exposed already....');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$refs[SUGGEST_TIMESLOT_MODAL_REF_NAME].openModal(timeSlotForAutoSelectionMobile);
|
this.$refs[SUGGEST_TIMESLOT_MODAL_REF_NAME].openModal(timeSlotForAutoSelectionMobile);
|
||||||
|
|
@ -918,9 +917,6 @@ export default {
|
||||||
this.selectedTimeSlotInfo = null;
|
this.selectedTimeSlotInfo = null;
|
||||||
this.showDatePickerError = false;
|
this.showDatePickerError = false;
|
||||||
},
|
},
|
||||||
async seeMoreOptions(emittedValue) {
|
|
||||||
console.log(emittedValue);
|
|
||||||
},
|
|
||||||
timeSlotSelectedFromPicker(timeSlot) {
|
timeSlotSelectedFromPicker(timeSlot) {
|
||||||
this.selectedTimeSlotInfo = timeSlot;
|
this.selectedTimeSlotInfo = timeSlot;
|
||||||
this.showDatePickerError = false;
|
this.showDatePickerError = false;
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
modal
|
modal
|
||||||
},
|
},
|
||||||
emits: ['confirm-appointment-clicked', 'see-more-options-clicked'],
|
emits: ['confirm-appointment-clicked'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
confirmedAppointment: false,
|
confirmedAppointment: false,
|
||||||
|
|
@ -87,7 +87,9 @@ export default {
|
||||||
.replaceAll('{custom:appointmentWindow}', this.customAppointmentWindow);
|
.replaceAll('{custom:appointmentWindow}', this.customAppointmentWindow);
|
||||||
},
|
},
|
||||||
modalBodyText() {
|
modalBodyText() {
|
||||||
return this.getCmsContent(this.cmsWidgetName, 'BodyText').replaceAll('{custom:dayOfWeekLong}', this.customDayOfWeek);
|
return this.getCmsContent(this.cmsWidgetName, 'BodyText')
|
||||||
|
.replaceAll('{custom:damageType}', this.timeSlotForAutoSelectionMobile.isRepair ? 'repair' : 'replace',)
|
||||||
|
.replaceAll('{custom:dayOfWeekLong}', this.customDayOfWeek);
|
||||||
},
|
},
|
||||||
modalCloseButtonText() {
|
modalCloseButtonText() {
|
||||||
return this.getCmsContent(this.cmsWidgetName, 'FooterText');
|
return this.getCmsContent(this.cmsWidgetName, 'FooterText');
|
||||||
|
|
@ -112,9 +114,6 @@ export default {
|
||||||
this.pushEvent();
|
this.pushEvent();
|
||||||
this.confirmedAppointment = false;
|
this.confirmedAppointment = false;
|
||||||
this.timeSlotForAutoSelectionMobile = {};
|
this.timeSlotForAutoSelectionMobile = {};
|
||||||
|
|
||||||
// this.$emit("close-mobile-first-modal");
|
|
||||||
// this.confirmedAppointment = false;
|
|
||||||
},
|
},
|
||||||
openModal(timeSlotForAutoSelectionMobile) {
|
openModal(timeSlotForAutoSelectionMobile) {
|
||||||
this.timeSlotForAutoSelectionMobile = timeSlotForAutoSelectionMobile;
|
this.timeSlotForAutoSelectionMobile = timeSlotForAutoSelectionMobile;
|
||||||
|
|
@ -136,7 +135,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
seeMoreOptionsClicked() {
|
seeMoreOptionsClicked() {
|
||||||
this.$emit('see-more-options-clicked');
|
|
||||||
this.$refs.suggestTimeslotModal.closeModal();
|
this.$refs.suggestTimeslotModal.closeModal();
|
||||||
},
|
},
|
||||||
footerButtonClick() {
|
footerButtonClick() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue