Merged in release/2023-02-03 (pull request #672)
IO-2162 Resolve display issues on scheduling modal . Approved-by: Patrick Fic
This commit is contained in:
@@ -201,7 +201,7 @@ export function ScheduleJobModalComponent({
|
|||||||
{() => {
|
{() => {
|
||||||
const values = form.getFieldsValue();
|
const values = form.getFieldsValue();
|
||||||
if (values.start) {
|
if (values.start) {
|
||||||
calculateScheduleLoad(values.start);
|
calculateScheduleLoad(moment(values.start).add(3, "days"));
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="schedule-job-modal">
|
<div className="schedule-job-modal">
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ export function* calculateScheduleLoad({ payload: end }) {
|
|||||||
|
|
||||||
//Propagate the expected load to each day.
|
//Propagate the expected load to each day.
|
||||||
|
|
||||||
const range = Math.round(moment.duration(end.diff(today)).asDays());
|
const range = Math.round(moment.duration(end.diff(today)).asDays()) + 1;
|
||||||
for (var day = 0; day < range; day++) {
|
for (var day = 0; day < range; day++) {
|
||||||
const current = moment(today).add(day, "days").format("yyyy-MM-DD");
|
const current = moment(today).add(day, "days").format("yyyy-MM-DD");
|
||||||
const prev = moment(today)
|
const prev = moment(today)
|
||||||
|
|||||||
Reference in New Issue
Block a user