Skip to content

Commit 8d79a29

Browse files
committed
show message in subtitle
1 parent 4693e31 commit 8d79a29

File tree

1 file changed

+8
-3
lines changed
  • services/static-webserver/client/source/class/osparc/task

1 file changed

+8
-3
lines changed

services/static-webserver/client/source/class/osparc/task/TaskUI.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,14 @@ qx.Class.define("osparc.task.TaskUI", {
123123
__applyTask: function(task) {
124124
task.addListener("updateReceived", e => {
125125
const data = e.getData();
126-
if (data["task_progress"] && "percent" in data["task_progress"]) {
127-
const progress = data["task_progress"]["percent"];
128-
this.getChildControl("progress").setValue(progress*100 + "%");
126+
if (data["task_progress"]) {
127+
if ("message" in data["task_progress"] && !this.getChildControl("subtitle").getValue()) {
128+
this.getChildControl("subtitle").setValue(data["task_progress"]["message"]);
129+
}
130+
if ("percent" in data["task_progress"]) {
131+
const progress = data["task_progress"]["percent"];
132+
this.getChildControl("progress").setValue(progress*100 + "%");
133+
}
129134
}
130135
}, this);
131136

0 commit comments

Comments
 (0)