persist job max time
This commit is contained in:
CarlNation 2023-05-31 10:56:59 -04:00
parent 081ce406ad
commit 616fe6ddd0
2 changed files with 6 additions and 2 deletions

View file

@ -237,7 +237,7 @@ export default {
startTime: timeSlotSelectedObject.startTime,
endTime: timeSlotSelectedObject.endTime,
routeCode: this.selectedTimeSlotData.id,
jobMaxMinutes: this.selectableDatesData.estimatedServiceMinutesMaximum,
jobMaxMinutes: this.selectableDatesData.estimatedServiceMinutesMaximum.toString(),
};
} else {
return null;
@ -346,7 +346,7 @@ export default {
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
},
async forwardButtonAction() {
await this.dispatchStoreAction(
this.dispatchStoreAction(
this.storeActions.SAVE_SCHEDULE,
this.appointmentDateAndTime,
false

View file

@ -84,6 +84,7 @@ const getDefaultState = () => {
startTime: null,
endTime: null,
routeCode: null,
jobMaxMinutes: null,
},
referralNumber: null,
referralDate: null,
@ -268,6 +269,7 @@ export const mutations = {
state.order.schedule.startTime = scheduleInfo.startTime;
state.order.schedule.endTime = scheduleInfo.endTime;
state.order.schedule.routeCode = scheduleInfo.routeCode;
state.order.schedule.jobMaxMinutes = scheduleInfo.jobMaxMinutes;
}
},
@ -440,6 +442,7 @@ export const mutations = {
state.order.schedule.startTime = sessionInformation.order.schedule?.startTime;
state.order.schedule.endTime = sessionInformation.order.schedule?.endTime;
state.order.schedule.routeCode = sessionInformation.order.schedule?.routeCode;
state.order.schedule.jobMaxMinutes = sessionInformation.order.schedule?.jobMaxMinutes;
},
updateExperiments(state, experiments) {
state.applicationUser.experiments = experiments;
@ -1342,6 +1345,7 @@ export const actions = {
startTime: order.schedule?.startTime,
endTime: order.schedule?.endTime,
routeCode: order.schedule?.routeCode,
jobMaxMinutes: order.schedule?.jobMaxMinutes
},
existingPromoCode: null,
referralCorrelationId: order.referralCorrelationId,