Skip to content

Commit

Permalink
🎨 [Frontend] Make the frontend dont-show-folders compatible (#6387)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Sep 18, 2024
1 parent 9057d01 commit 502ac45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
this._searchBarFilter.setSharedWithActiveFilter(sharedWith.id, sharedWith.label);
}, this);

if (this._resourceType === "study") {
if (this._resourceType === "study" && osparc.utils.DisabledPlugins.isFoldersEnabled()) {
const workspacesAndFoldersTree = resourceFilter.getWorkspacesAndFoldersTree();
workspacesAndFoldersTree.getSelection().addListener("change", () => {
const selection = workspacesAndFoldersTree.getSelection();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ qx.Class.define("osparc.dashboard.ResourceFilter", {
__serviceTypeButtons: null,

__buildLayout: function() {
if (this.__resourceType === "study") {
if (this.__resourceType === "study" && osparc.utils.DisabledPlugins.isFoldersEnabled()) {
this._add(this.__createWorkspacesAndFoldersTree());
} else {
this._add(this.__createSharedWithFilterLayout());
Expand Down Expand Up @@ -140,11 +140,6 @@ qx.Class.define("osparc.dashboard.ResourceFilter", {
})
});
}
if (option.id !== "show-all") {
button.set({
marginLeft: 15
});
}
}
button.id = option.id;

Expand Down

0 comments on commit 502ac45

Please sign in to comment.