File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,8 @@ qx.Class.define("osparc.data.model.Node", {
528528 this . setLabel ( nodeData . label ) ;
529529 }
530530 this . __populateInputOutputData ( nodeData ) ;
531- this . populateStates ( nodeData ) ;
531+ this . populateProgress ( nodeData ) ;
532+ this . populateState ( nodeData ) ;
532533 if ( nodeData . bootOptions ) {
533534 this . setBootOptions ( nodeData . bootOptions ) ;
534535 }
@@ -570,7 +571,7 @@ qx.Class.define("osparc.data.model.Node", {
570571 this . setInputsRequired ( nodeData . inputsRequired || [ ] ) ;
571572 } ,
572573
573- populateStates : function ( nodeData ) {
574+ populateProgress : function ( nodeData ) {
574575 if ( "progress" in nodeData ) {
575576 const progress = Number . parseInt ( nodeData [ "progress" ] ) ;
576577 const oldProgress = this . getStatus ( ) . getProgress ( ) ;
@@ -581,6 +582,9 @@ qx.Class.define("osparc.data.model.Node", {
581582 this . getStatus ( ) . setProgress ( progress ) ;
582583 }
583584 }
585+ } ,
586+
587+ populateState : function ( nodeData ) {
584588 if ( "state" in nodeData ) {
585589 this . getStatus ( ) . setState ( nodeData . state ) ;
586590 }
Original file line number Diff line number Diff line change @@ -576,11 +576,8 @@ qx.Class.define("osparc.data.model.Study", {
576576 if ( node ) {
577577 if ( nodeData && ! osparc . data . model . Node . isFrontend ( node . getMetadata ( ) ) ) {
578578 node . setOutputData ( nodeData . outputs ) ;
579- if ( "progress" in nodeData ) {
580- const progress = Number . parseInt ( nodeData [ "progress" ] ) ;
581- node . getStatus ( ) . setProgress ( progress ) ;
582- }
583- node . populateStates ( nodeData ) ;
579+ node . populateProgress ( nodeData ) ;
580+ node . populateState ( nodeData ) ;
584581 }
585582 if ( "errors" in nodeUpdatedData ) {
586583 const errors = nodeUpdatedData [ "errors" ] ;
You can’t perform that action at this time.
0 commit comments