File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -146,20 +146,21 @@ qx.Class.define("osparc.data.model.NodeStatus", {
146146
147147 members : {
148148 __applyNode : function ( node ) {
149- const addNodeProgressSequence = ( ) => {
149+ const initNode = ( ) => {
150150 if ( node . isDynamic ( ) ) {
151151 const progressSequence = new osparc . data . model . NodeProgressSequence ( ) ;
152152 this . setProgressSequence ( progressSequence ) ;
153-
153+ }
154+ if ( node . isComputational ( ) || node . isDynamic ( ) ) {
154155 const lockState = new osparc . data . model . NodeLockState ( ) ;
155156 this . setLockState ( lockState ) ;
156157 }
157158 } ;
158159
159160 if ( node . getMetadata ( ) ) {
160- addNodeProgressSequence ( ) ;
161+ initNode ( ) ;
161162 } else {
162- node . addListenerOnce ( "changeMetadata" , ( ) => addNodeProgressSequence ( ) , this ) ;
163+ node . addListenerOnce ( "changeMetadata" , ( ) => initNode ( ) , this ) ;
163164 }
164165 } ,
165166
You can’t perform that action at this time.
0 commit comments