File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -234,8 +234,8 @@ qx.Class.define("osparc.data.model.Node", {
234234 /*
235235 "progress", // TODO
236236 "inputsRequired", // TODO
237- "inputNodes", // TODO
238237 */
238+ "inputNodes" , // !! not a property but goes into the model
239239 ] ,
240240
241241 isFrontend : function ( metadata ) {
@@ -925,7 +925,7 @@ qx.Class.define("osparc.data.model.Node", {
925925 if ( index > - 1 ) {
926926 // remove node connection
927927 this . __inputNodes . splice ( index , 1 ) ;
928- this . fireDataEvent ( "changeInputNodes" ) ;
928+ this . fireEvent ( "changeInputNodes" ) ;
929929 return true ;
930930 }
931931 return false ;
@@ -1355,6 +1355,17 @@ qx.Class.define("osparc.data.model.Node", {
13551355 }
13561356 }
13571357 } ) ;
1358+
1359+ // extra listeners
1360+ this . addListener ( "changeInputNodes" , ( ) => {
1361+ const data = this . getInputNodes ( ) ;
1362+ this . fireDataEvent ( "updateStudyDocument" , {
1363+ "op" : "replace" ,
1364+ "path" : `/workbench/${ nodeId } /inputNodes` ,
1365+ "value" : data ,
1366+ "osparc-resource" : "node" ,
1367+ } ) ;
1368+ } , this ) ;
13581369 } ,
13591370
13601371 serialize : function ( ) {
You can’t perform that action at this time.
0 commit comments