Skip to content

Commit fea71a6

Browse files
committed
showStudyOptions flag
1 parent f9fa585 commit fea71a6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserBase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
9595
return isLogged;
9696
},
9797

98-
startStudyById: function(studyId, openCB, cancelCB, isStudyCreation = false) {
98+
startStudyById: function(studyId, openCB, cancelCB, showStudyOptions = false) {
9999
if (!osparc.dashboard.ResourceBrowserBase.checkLoggedIn()) {
100100
return;
101101
}
@@ -117,7 +117,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
117117
osparc.data.Resources.fetch("studies", "getWallet", params)
118118
.then(wallet => {
119119
if (
120-
isStudyCreation ||
120+
showStudyOptions ||
121121
wallet === null ||
122122
osparc.desktop.credits.Utils.getWallet(wallet["walletId"]) === null
123123
) {

services/static-webserver/client/source/class/osparc/dashboard/TemplateBrowser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ qx.Class.define("osparc.dashboard.TemplateBrowser", {
152152
studyOptions.addListener("startStudy", () => {
153153
const titleSelection = studyOptions.getChildControl("title-field").getValue();
154154
const walletSelection = studyOptions.getChildControl("wallet-selector").getSelection();
155-
const nodesPricingUnits = studyOptions.getNodePricingUnits();
155+
const nodesPricingUnits = studyOptions.getChildControl("study-pricing-units").getNodePricingUnits();
156156
win.close();
157157
osparc.study.Utils.createStudyFromTemplate(templateData, this._loadingPage)
158158
.then(studyData => {
@@ -186,8 +186,8 @@ qx.Class.define("osparc.dashboard.TemplateBrowser", {
186186
Promise.all(promises)
187187
.then(() => {
188188
win.close();
189-
const isStudyCreation = true;
190-
this._startStudyById(studyId, openCB, cancelCB, isStudyCreation);
189+
const showStudyOptions = false;
190+
this._startStudyById(studyId, openCB, cancelCB, showStudyOptions);
191191
});
192192
})
193193
.catch(err => {

0 commit comments

Comments
 (0)