commit
50a694ee73
2 changed files with 8 additions and 0 deletions
|
|
@ -527,6 +527,9 @@ describe("schedule.vue...", () => {
|
||||||
data: [],
|
data: [],
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
wrapper.vm.selectableDatesData = {
|
||||||
|
estimatedServiceMinutesMinimum: 30,
|
||||||
|
};
|
||||||
wrapper.vm.$router.navigateWithSaving = jest.fn(() => {
|
wrapper.vm.$router.navigateWithSaving = jest.fn(() => {
|
||||||
return {};
|
return {};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -427,6 +427,11 @@ export default {
|
||||||
forwardButtonAction() {
|
forwardButtonAction() {
|
||||||
this.updateSupportingItems();
|
this.updateSupportingItems();
|
||||||
|
|
||||||
|
//update jobMin minutes if it's null because when switching from cash to insurance dynamo returns null for jobMin
|
||||||
|
if (this.selectedTimeSlotInfo.timeSlot.jobMinMinutes == null) {
|
||||||
|
this.selectedTimeSlotInfo.timeSlot.jobMinMinutes =
|
||||||
|
this.selectableDatesData.estimatedServiceMinutesMinimum.toString();
|
||||||
|
}
|
||||||
this.dispatchStoreAction(
|
this.dispatchStoreAction(
|
||||||
this.storeActions.SAVE_SCHEDULE,
|
this.storeActions.SAVE_SCHEDULE,
|
||||||
this.selectedTimeSlotInfo.timeSlot,
|
this.selectedTimeSlotInfo.timeSlot,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue