From: Kim Do Young Date: Wed, 25 Sep 2024 10:03:33 +0000 (+0900) Subject: Close modal and update job list after creating Training Job X-Git-Tag: 4.0.0~23^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=c04fcef472dda19b432c469ef8f88ebbf384fc68;p=portal%2Faiml-dashboard.git Close modal and update job list after creating Training Job Change-Id: Iea60abaffb2e8c980eaf2bb2dded6e9afada972e Signed-off-by: Kim Do Young --- diff --git a/src/components/home/create/CreateTrainingJob.js b/src/components/home/create/CreateTrainingJob.js index 789e35e..ef4de0f 100644 --- a/src/components/home/create/CreateTrainingJob.js +++ b/src/components/home/create/CreateTrainingJob.js @@ -87,6 +87,7 @@ class CreateTrainingJob extends React.Component { diff --git a/src/components/home/form/CreateOrEditTrainingJobForm.js b/src/components/home/form/CreateOrEditTrainingJobForm.js index 121736b..585e754 100644 --- a/src/components/home/form/CreateOrEditTrainingJobForm.js +++ b/src/components/home/form/CreateOrEditTrainingJobForm.js @@ -430,6 +430,8 @@ class CreateTrainingJob extends React.Component { if (res.status === 200) { alert('Training Job created and training initiated'); this.resetFrom(); + this.props.onHideCreatePopup(); + this.props.fetchTrainingJobs(); } }) .catch(error => { diff --git a/src/components/home/status/StatusPageRows.js b/src/components/home/status/StatusPageRows.js index ae5d1c9..eb361de 100644 --- a/src/components/home/status/StatusPageRows.js +++ b/src/components/home/status/StatusPageRows.js @@ -257,7 +257,7 @@ const StatusPageRows = props => { - +