You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@griffin.apache.org by gu...@apache.org on 2018/07/12 09:24:41 UTC
incubator-griffin git commit: GRIFFIN-178 - job state not update
after performing start/stop actions on job page
Repository: incubator-griffin
Updated Branches:
refs/heads/master ffdb495d2 -> 6489e64c8
GRIFFIN-178 - job state not update after performing start/stop actions on job page
GRIFFIN-178 - job state not update after performing start/stop actions on job page
Author: Li, Juan <su...@gmail.com>
Closes #346 from icesmartjuan/bug/job_state_auto_refresh.
Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/6489e64c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/6489e64c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/6489e64c
Branch: refs/heads/master
Commit: 6489e64c8c7952ee4768363a6ada2dde9b530a00
Parents: ffdb495
Author: Li, Juan <su...@gmail.com>
Authored: Thu Jul 12 17:24:27 2018 +0800
Committer: Lionel Liu <bh...@163.com>
Committed: Thu Jul 12 17:24:27 2018 +0800
----------------------------------------------------------------------
ui/angular/src/app/job/job.component.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/6489e64c/ui/angular/src/app/job/job.component.ts
----------------------------------------------------------------------
diff --git a/ui/angular/src/app/job/job.component.ts b/ui/angular/src/app/job/job.component.ts
index 71387e8..861c6e4 100644
--- a/ui/angular/src/app/job/job.component.ts
+++ b/ui/angular/src/app/job/job.component.ts
@@ -103,7 +103,7 @@ export class JobComponent implements OnInit {
this.http.put(actionUrl, {}).subscribe(data => {
var result = JSON.parse(JSON.stringify(data));
row.action = (row.action === 'STOP' ? 'START' : 'STOP');
- row.jobState.state = result.jobState.state;
+ row.jobState.state = result["job.state"].state;
},
err => {
this.toasterService.pop("error", "Error!", "Failed to manage job state!");