File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
services/static-webserver/client/source/class/osparc/task Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments