@@ -62,19 +62,10 @@ qx.Class.define("osparc.info.StudyLarge", {
6262
6363 const vBox = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 10 ) ) ;
6464
65- const mainHBox = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 5 ) ) ;
65+ const infoElements = this . __infoElements ( ) ;
66+ const infoLayout = osparc . info . StudyUtils . infoElementsToLayout ( infoElements ) ;
6667
67- const leftVBox = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 5 ) ) ;
68- mainHBox . add ( leftVBox , {
69- flex : 1
70- } ) ;
71-
72- vBox . add ( mainHBox ) ;
73-
74- const extraInfo = this . __extraInfo ( ) ;
75- const extraInfoLayout = this . __createExtraInfo ( extraInfo ) ;
76-
77- leftVBox . add ( extraInfoLayout ) ;
68+ vBox . add ( infoLayout ) ;
7869
7970 let text = osparc . product . Utils . getStudyAlias ( { firstUpperCase : true } ) + " Id" ;
8071 if ( this . __isTemplate ) {
@@ -87,7 +78,7 @@ qx.Class.define("osparc.info.StudyLarge", {
8778 allowGrowX : false
8879 } ) ;
8980 copyIdButton . addListener ( "execute" , ( ) => osparc . utils . Utils . copyTextToClipboard ( this . getStudy ( ) . getUuid ( ) ) ) ;
90- leftVBox . add ( copyIdButton ) ;
81+ vBox . add ( copyIdButton ) ;
9182
9283 const scrollContainer = new qx . ui . container . Scroll ( ) ;
9384 scrollContainer . add ( vBox ) ;
@@ -97,8 +88,8 @@ qx.Class.define("osparc.info.StudyLarge", {
9788 } ) ;
9889 } ,
9990
100- __extraInfo : function ( ) {
101- const extraInfo = {
91+ __infoElements : function ( ) {
92+ const infoLayout = {
10293 "TITLE" : {
10394 label : this . tr ( "Title:" ) ,
10495 view : osparc . info . StudyUtils . createTitle ( this . getStudy ( ) ) ,
@@ -166,7 +157,7 @@ qx.Class.define("osparc.info.StudyLarge", {
166157 this . getStudy ( ) . getQuality ( ) &&
167158 osparc . metadata . Quality . isEnabled ( this . getStudy ( ) . getQuality ( ) )
168159 ) {
169- extraInfo [ "QUALITY" ] = {
160+ infoLayout [ "QUALITY" ] = {
170161 label : this . tr ( "Quality:" ) ,
171162 view : osparc . info . StudyUtils . createQuality ( this . getStudy ( ) ) ,
172163 action : {
@@ -178,7 +169,7 @@ qx.Class.define("osparc.info.StudyLarge", {
178169 }
179170
180171 if ( osparc . product . Utils . showClassifiers ( ) ) {
181- extraInfo [ "CLASSIFIERS" ] = {
172+ infoLayout [ "CLASSIFIERS" ] = {
182173 label : this . tr ( "Classifiers:" ) ,
183174 view : osparc . info . StudyUtils . createClassifiers ( this . getStudy ( ) ) ,
184175 action : ( this . getStudy ( ) . getClassifiers ( ) . length || this . __canIWrite ( ) ) ? {
@@ -192,18 +183,14 @@ qx.Class.define("osparc.info.StudyLarge", {
192183 if ( ! this . __isTemplate ) {
193184 const pathLabel = new qx . ui . basic . Label ( ) ;
194185 pathLabel . setValue ( this . getStudy ( ) . getLocationString ( ) ) ;
195- extraInfo [ "LOCATION" ] = {
186+ infoLayout [ "LOCATION" ] = {
196187 label : this . tr ( "Location:" ) ,
197188 view : pathLabel ,
198189 action : null
199190 } ;
200191 }
201192
202- return extraInfo ;
203- } ,
204-
205- __createExtraInfo : function ( extraInfo ) {
206- return osparc . info . StudyUtils . createExtraInfoGrid ( extraInfo ) ;
193+ return infoLayout ;
207194 } ,
208195
209196 __createStudyId : function ( ) {
0 commit comments