File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -700,6 +700,8 @@ qx.Class.define("osparc.data.model.Workbench", {
700700 } ,
701701
702702 __deserialize : function ( workbenchInitData , workbenchUIInitData ) {
703+ this . __deserializeAll ( workbenchInitData , workbenchUIInitData ) ;
704+
703705 this . __deserializeNodes ( workbenchInitData , workbenchUIInitData )
704706 . then ( ( ) => {
705707 this . __deserializeEdges ( workbenchInitData ) ;
@@ -709,6 +711,21 @@ qx.Class.define("osparc.data.model.Workbench", {
709711 } ) ;
710712 } ,
711713
714+ __deserializeAll : function ( workbenchData , uiData = { } ) {
715+ const nodeDatas = { } ;
716+ const nodeUiDatas = { } ;
717+ for ( const nodeId in workbenchData ) {
718+ const nodeData = workbenchData [ nodeId ] ;
719+ nodeDatas [ nodeId ] = nodeData ;
720+ if ( uiData [ "workbench" ] && nodeId in uiData [ "workbench" ] ) {
721+ nodeUiDatas [ nodeId ] = uiData [ "workbench" ] [ nodeId ] ;
722+ }
723+ }
724+ for ( const nodeId in nodeDatas ) {
725+ console . log ( "node" , nodeId , nodeDatas [ nodeId ] , nodeUiDatas [ nodeId ] ) ;
726+ }
727+ } ,
728+
712729 __deserializeNodes : function ( workbenchData , workbenchUIData = { } ) {
713730 const nodeIds = Object . keys ( workbenchData ) ;
714731 const serviceMetadataPromises = [ ] ;
You can’t perform that action at this time.
0 commit comments