Skip to content

Commit d88d3de

Browse files
committed
pipeline or workbench
1 parent 245036e commit d88d3de

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-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
}

0 commit comments

Comments
 (0)