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
|
||||
:ref="SUGGEST_TIMESLOT_MODAL_REF_NAME"
|
||||
cmsWidgetName="SuggestTimeslotModal"
|
||||
@confirmAppointmentClicked="autoSelectTimeslotConfirmed"
|
||||
@seeMoreOptionsClicked="seeMoreOptions"/>
|
||||
@confirmAppointmentClicked="autoSelectTimeslotConfirmed" />
|
||||
</Form>
|
||||
</template>
|
||||
<script>
|
||||
|
|
@ -488,6 +487,7 @@ export default {
|
|||
};
|
||||
|
||||
this.mainStore.saveSchedule(timeSlotToUse);
|
||||
showIssLoadingModal(true);
|
||||
this.$router.navigate(
|
||||
this.navigationScenarios.CLICKED_FORWARD,
|
||||
this.$route
|
||||
|
|
@ -609,6 +609,7 @@ export default {
|
|||
date: firstPmMobileDateWithTimeSlots ? firstPmMobileDateWithTimeSlots.date : firstMobileDateWithTimeSlots.date,
|
||||
estimatedServiceMinutesMax,
|
||||
estimatedServiceMinutesMin,
|
||||
isRepair: this.mainStore.order.damage.isRepair,
|
||||
mobileProviderNumber: mobileFirstObject.mobileProviderNumber,
|
||||
timeSlot: firstPmMobileDateWithTimeSlots ? firstPmMobileDateWithTimeSlots.afternoonTimeSlots[0]
|
||||
: (firstMobileDateWithTimeSlots.morningTimeSlots[0] || firstMobileDateWithTimeSlots.afternoonTimeSlots[0]),
|
||||
|
|
@ -622,8 +623,6 @@ export default {
|
|||
const experiment = this.getExperimentByName(experimentUniverses.ISS_MOBILE_FIRST_APPOINTMENTS);
|
||||
if (experiment && !experiment.isExposed) {
|
||||
this.mainStore.logMobileFirstExperimentExposure();
|
||||
} else {
|
||||
console.log('Mobile experiment exposed already....');
|
||||
}
|
||||
|
||||
this.$refs[SUGGEST_TIMESLOT_MODAL_REF_NAME].openModal(timeSlotForAutoSelectionMobile);
|
||||
|
|
@ -918,9 +917,6 @@ export default {
|
|||
this.selectedTimeSlotInfo = null;
|
||||
this.showDatePickerError = false;
|
||||
},
|
||||
async seeMoreOptions(emittedValue) {
|
||||
console.log(emittedValue);
|
||||
},
|
||||
timeSlotSelectedFromPicker(timeSlot) {
|
||||
this.selectedTimeSlotInfo = timeSlot;
|
||||
this.showDatePickerError = false;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export default {
|
|||
components: {
|
||||
modal
|
||||
},
|
||||
emits: ['confirm-appointment-clicked', 'see-more-options-clicked'],
|
||||
emits: ['confirm-appointment-clicked'],
|
||||
data() {
|
||||
return {
|
||||
confirmedAppointment: false,
|
||||
|
|
@ -87,7 +87,9 @@ export default {
|
|||
.replaceAll('{custom:appointmentWindow}', this.customAppointmentWindow);
|
||||
},
|
||||
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() {
|
||||
return this.getCmsContent(this.cmsWidgetName, 'FooterText');
|
||||
|
|
@ -112,9 +114,6 @@ export default {
|
|||
this.pushEvent();
|
||||
this.confirmedAppointment = false;
|
||||
this.timeSlotForAutoSelectionMobile = {};
|
||||
|
||||
// this.$emit("close-mobile-first-modal");
|
||||
// this.confirmedAppointment = false;
|
||||
},
|
||||
openModal(timeSlotForAutoSelectionMobile) {
|
||||
this.timeSlotForAutoSelectionMobile = timeSlotForAutoSelectionMobile;
|
||||
|
|
@ -136,7 +135,6 @@ export default {
|
|||
}
|
||||
},
|
||||
seeMoreOptionsClicked() {
|
||||
this.$emit('see-more-options-clicked');
|
||||
this.$refs.suggestTimeslotModal.closeModal();
|
||||
},
|
||||
footerButtonClick() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue