Skip to content

Commit 63d3846

Browse files
committed
updateSubJob
1 parent 8df1e20 commit 63d3846

File tree

1 file changed

+5
-8
lines changed
  • services/static-webserver/client/source/class/osparc/data

1 file changed

+5
-8
lines changed

services/static-webserver/client/source/class/osparc/data/SubJob.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,9 @@ qx.Class.define("osparc.data.SubJob", {
2424
this.set({
2525
projectUuid: subJobData["projectUuid"],
2626
nodeId: subJobData["nodeId"],
27-
nodeName: subJobData["nodeName"],
28-
state: subJobData["state"],
29-
progress: subJobData["progress"],
30-
startedAt: subJobData["startedAt"] ? new Date(subJobData["startedAt"]) : null,
31-
endedAt: subJobData["endedAt"] ? new Date(subJobData["endedAt"]) : null,
32-
osparcCredits: subJobData["osparcCredits"] === null ? null : -1*parseFloat(subJobData["osparcCredits"]),
33-
image: subJobData["image"] || {},
34-
logDownloadLink: subJobData["logDownloadLink"] || null,
3527
});
28+
29+
this.updateSubJob(subJobData);
3630
},
3731

3832
properties: {
@@ -100,11 +94,14 @@ qx.Class.define("osparc.data.SubJob", {
10094
members: {
10195
updateSubJob: function(subJobData) {
10296
this.set({
97+
nodeName: subJobData["nodeName"],
10398
state: subJobData["state"],
10499
progress: subJobData["progress"],
105100
startedAt: subJobData["startedAt"] ? new Date(subJobData["startedAt"]) : null,
106101
endedAt: subJobData["endedAt"] ? new Date(subJobData["endedAt"]) : null,
107102
osparcCredits: subJobData["osparcCredits"] === null ? null : -1*parseFloat(subJobData["osparcCredits"]),
103+
image: subJobData["image"] || {},
104+
logDownloadLink: subJobData["logDownloadLink"] || null,
108105
});
109106
},
110107
},

0 commit comments

Comments
 (0)