File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1373,6 +1373,24 @@ qx.Class.define("osparc.data.model.Node", {
13731373 } ) ;
13741374 }
13751375 break ;
1376+ case "outputs" :
1377+ if ( this . isFilePicker ( ) || this . isParameter ( ) ) {
1378+ this . addListener ( "changeOutputs" , e => {
1379+ let data = e . getData ( ) ;
1380+ if ( this . isFilePicker ( ) ) {
1381+ data = osparc . file . FilePicker . serializeOutput ( this . getOutputs ( ) ) ;
1382+ } else if ( this . isParameter ( ) ) {
1383+ data = this . __getOutputsData ( ) ;
1384+ }
1385+ this . fireDataEvent ( "updateStudyDocument" , {
1386+ "op" : "replace" ,
1387+ "path" : `/workbench/${ nodeId } /outputs` ,
1388+ "value" : data ,
1389+ "osparc-resource" : "node" ,
1390+ } ) ;
1391+ } , this ) ;
1392+ }
1393+ break ;
13761394 default :
13771395 if ( propertyKeys . includes ( key ) ) {
13781396 this . addListener ( "change" + qx . lang . String . firstUp ( key ) , e => {
You can’t perform that action at this time.
0 commit comments