Skip to content

Commit 555b108

Browse files
committed
minor
1 parent 884acfa commit 555b108

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/static-webserver/client/source/class/osparc/study/StudyOptions.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ qx.Class.define("osparc.study.StudyOptions", {
142142
control = osparc.desktop.credits.Utils.createWalletSelector("read").set({
143143
allowGrowX: false
144144
});
145+
control.addListener("changeSelection", () => this.__evaluateOpenButton());
145146
this.getChildControl("wallet-selector-layout").add(control);
146147
break;
147148
case "advanced-layout":
@@ -278,13 +279,11 @@ qx.Class.define("osparc.study.StudyOptions", {
278279
}
279280
});
280281
}
281-
282-
this.__evaluateOpenButton();
283282
},
284283

285284
__evaluateOpenButton: function() {
286285
const hasTitle = Boolean(this.getChildControl("title-field").getValue());
287-
const walletSelected = Boolean(this.getWallet());
286+
const walletSelected = Boolean(this.getChildControl("wallet-selector").getSelection());
288287
this.getChildControl("open-button").setEnabled(hasTitle && walletSelected);
289288
},
290289

0 commit comments

Comments
 (0)