IO-2162 Improved UI for scheduled problem jobs.

This commit is contained in:
Patrick Fic
2023-02-03 13:48:49 -08:00
parent 563c1d2402
commit 3be50b5067
6 changed files with 77 additions and 6 deletions

View File

@@ -60,9 +60,7 @@ export function ScheduleJobModalComponent({
const handleDateBlur = () => {
const values = form.getFieldsValue();
if (values.start) {
calculateScheduleLoad(values.start);
}
if (lbrHrsData) {
const totalHours =
lbrHrsData.jobs_by_pk.labhrs.aggregate.sum.mod_lb_hrs +
@@ -197,6 +195,9 @@ export function ScheduleJobModalComponent({
<Form.Item shouldUpdate={(prev, cur) => prev.start !== cur.start}>
{() => {
const values = form.getFieldsValue();
if (values.start) {
calculateScheduleLoad(values.start);
}
return (
<div className="schedule-job-modal">
<ScheduleDayViewContainer day={values.start} />