IO-1469 Retain event detals when rescheduling.

This commit is contained in:
Patrick Fic
2021-10-18 13:56:48 -07:00
parent f448232fe7
commit dc10f8d35b
2 changed files with 7 additions and 1 deletions

View File

@@ -209,6 +209,9 @@ export function ScheduleEventComponent({
jobId: event.job.id,
job: event.job,
previousEvent: event.id,
color: event.color,
alt_transport: event.alt_transport,
note: event.note,
},
});
}}

View File

@@ -105,7 +105,7 @@ export function ScheduleJobModalContainer({
start: moment(values.start),
end: moment(values.start).add(bodyshop.appt_length || 60, "minutes"),
color: values.color,
note:values.note
note: values.note,
},
jobId: jobId,
altTransport: values.alt_transport,
@@ -188,6 +188,9 @@ export function ScheduleJobModalContainer({
start: null,
// smartDates: [],
scheduled_completion: null,
color: context.color,
alt_transport: context.alt_transport,
note: context.note,
}}
>
<ScheduleJobModalComponent