Skip to content

Commit 9de1fb8

Browse files
committed
Open -> New Project
1 parent d34d377 commit 9de1fb8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
126126
toolbar.add(serviceVersionSelector);
127127
}
128128

129-
const openButton = new osparc.ui.form.FetchButton(this.tr("Open")).set({
129+
const studyAlias = osparc.product.Utils.getStudyAlias({firstUpperCase: true});
130+
const openText = (this.__resourceData["resourceType"] === "study") ? this.tr("Open") : this.tr("New") + " " + studyAlias;
131+
const openButton = new osparc.ui.form.FetchButton(openText).set({
130132
enabled: true
131133
});
132134
page.openButton = openButton;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ qx.Class.define("osparc.dashboard.ServiceBrowser", {
103103
return;
104104
}
105105

106-
this._showLoadingPage(this.tr("Creating ") + osparc.product.Utils.getStudyAlias());
106+
const studyAlias = osparc.product.Utils.getStudyAlias({firstUpperCase: true});
107+
this._showLoadingPage(this.tr("Creating ") + studyAlias);
108+
107109
osparc.study.Utils.createStudyFromService(key, version)
108110
.then(studyId => {
109111
const openCB = () => this._hideLoadingPage();

0 commit comments

Comments
 (0)