Skip to content

Commit 9ad66db

Browse files
authored
🐛 [Frontend] Add new parameter from node's inputs (#8332)
1 parent 245036e commit 9ad66db

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

services/static-webserver/client/source/class/osparc/desktop/WorkbenchView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
657657
}, this);
658658

659659
workbench.addListener("fileRequested", () => {
660-
if (this.getStudy().getUi().getMode() === "workbench") {
660+
if (["workbench", "pipeline"].includes(this.getStudy().getUi().getMode())) {
661661
const tabViewLeftPanel = this.getChildControl("side-panel-left-tabs");
662662
tabViewLeftPanel.setSelection([this.__storagePage]);
663663
}

services/static-webserver/client/source/class/osparc/file/FilePicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ qx.Class.define("osparc.file.FilePicker", {
283283
this.__buildInfoLayout();
284284
} else {
285285
this.__addProgressBar();
286-
if (viewContext === "workbench") {
286+
if (["workbench", "pipeline"].includes(viewContext)) {
287287
this.__buildWorkbenchLayout();
288288
} else {
289289
this.setMargin(10);

services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ qx.Class.define("osparc.form.renderer.PropForm", {
313313
if (["FileButton"].includes(field.widgetType)) {
314314
const menuButton = this.__getSelectFileButton(field.key);
315315
studyUI.bind("mode", menuButton, "visibility", {
316-
converter: mode => mode === "workbench" ? "visible" : "excluded"
316+
converter: mode => ["workbench", "pipeline"].includes(mode) ? "visible" : "excluded"
317317
});
318318
optionsMenu.add(menuButton);
319319
}
@@ -329,7 +329,7 @@ qx.Class.define("osparc.form.renderer.PropForm", {
329329
paramsMenuBtn
330330
].forEach(btn => {
331331
studyUI.bind("mode", btn, "visibility", {
332-
converter: mode => mode === "workbench" ? "visible" : "excluded"
332+
converter: mode => ["workbench", "pipeline"].includes(mode) ? "visible" : "excluded"
333333
});
334334
});
335335
}

services/static-webserver/client/source/class/osparc/navigation/StudyTitleWOptions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ qx.Class.define("osparc.navigation.StudyTitleWOptions", {
122122
inputFont: "text-14",
123123
maxWidth: 300
124124
});
125+
osparc.utils.Utils.setIdToWidget(control, "studyTitleRenamer");
125126
control.addListener("editValue", e => {
126127
const newLabel = e.getData();
127128
this.getStudy().setName(newLabel);

0 commit comments

Comments
 (0)