File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,8 @@ qx.Class.define("osparc.jobs.Info", {
3030 flex : 1
3131 } ) ;
3232 this . addListener ( "appear" , ( ) => {
33- osparc . wrapper . JsonFormatter . getInstance ( ) . setData ( info , divId ) ;
33+ osparc . wrapper . JsonFormatter . getInstance ( ) . setJson ( info , divId ) ;
3434 } ) ;
35-
36- return ;
37- const jobInfoViewer = this . getChildControl ( "job-info-viewer" ) ;
38- jobInfoViewer . setJson ( info ) ;
3935 } ,
4036
4137 statics : {
Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ qx.Class.define("osparc.wrapper.JsonFormatter", {
105105 return container
106106 } ,
107107
108- setData : function ( myJSON , divId ) {
108+ setJson : function ( jsonObject , divId ) {
109109 // Remove previous content
110110 const container = document . getElementById ( divId ) ;
111111 container . innerHTML = "" ;
112112
113113 // Render JSON
114- const formatter = new JSONFormatter ( myJSON , 2 ) ; // 2 = expand depth
114+ const formatter = new JSONFormatter ( jsonObject , 2 ) ; // 2 = expand depth
115115 container . appendChild ( formatter . render ( ) ) ;
116116 } ,
117117 }
You can’t perform that action at this time.
0 commit comments