@@ -130,6 +130,8 @@ qx.Class.define("osparc.study.StudyOptions", {
130130 control = new qx . ui . form . TextField ( ) . set ( {
131131 maxWidth : 220
132132 } ) ;
133+ control . addListener ( "changeValue" , ( ) => this . __evaluateOpenButton ( ) ) ;
134+ osparc . utils . Utils . setIdToWidget ( control , "studyTitleField" ) ;
133135 this . getChildControl ( "title-layout" ) . add ( control ) ;
134136 break ;
135137 case "wallet-selector-layout" :
@@ -140,6 +142,7 @@ qx.Class.define("osparc.study.StudyOptions", {
140142 control = osparc . desktop . credits . Utils . createWalletSelector ( "read" ) . set ( {
141143 allowGrowX : false
142144 } ) ;
145+ control . addListener ( "changeSelection" , ( ) => this . __evaluateOpenButton ( ) ) ;
143146 this . getChildControl ( "wallet-selector-layout" ) . add ( control ) ;
144147 break ;
145148 case "advanced-layout" :
@@ -226,7 +229,8 @@ qx.Class.define("osparc.study.StudyOptions", {
226229 minWidth : 150 ,
227230 maxWidth : 150 ,
228231 height : 35 ,
229- center : true
232+ center : true ,
233+ enabled : false ,
230234 } ) ;
231235 osparc . utils . Utils . setIdToWidget ( control , "openWithResources" ) ;
232236 this . getChildControl ( "buttons-layout" ) . addAt ( control , 1 ) ;
@@ -275,14 +279,20 @@ qx.Class.define("osparc.study.StudyOptions", {
275279 }
276280 } ) ;
277281 }
282+ } ,
278283
279- this . getChildControl ( "open-button" ) . setEnabled ( Boolean ( wallet ) ) ;
284+ __evaluateOpenButton : function ( ) {
285+ const hasTitle = Boolean ( this . getChildControl ( "title-field" ) . getValue ( ) ) ;
286+ const walletSelected = Boolean ( this . getChildControl ( "wallet-selector" ) . getSelection ( ) . length ) ;
287+ this . getChildControl ( "open-button" ) . setEnabled ( hasTitle && walletSelected ) ;
280288 } ,
281289
282290 __buildLayout : function ( ) {
283291 this . __buildTopSummaryLayout ( ) ;
284292 this . __buildOptionsLayout ( ) ;
285293 this . __buildButtons ( ) ;
294+
295+ this . __evaluateOpenButton ( ) ;
286296 } ,
287297
288298 __buildTopSummaryLayout : function ( ) {
0 commit comments