Skip to content

Commit

Permalink
Empty Trash button
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Feb 20, 2025
1 parent 1c2658a commit d8ddb51
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
this.__setWorkspacesToList(workspaces);
if (this.getCurrentContext() === "trash") {
if (workspaces.length) {
// Not yet implemented
// this.__header.getChildControl("empty-trash-button").show();
this.__header.getChildControl("empty-trash-button").show();
}
}
})
Expand Down Expand Up @@ -240,8 +239,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
this.__setFoldersToList(folders);
if (this.getCurrentContext() === "trash") {
if (folders.length) {
// Not yet implemented
// this.__header.getChildControl("empty-trash-button").show();
this.__header.getChildControl("empty-trash-button").show();
}
}
})
Expand Down Expand Up @@ -312,8 +310,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {

if (this.getCurrentContext() === "trash") {
if (this._resourcesList.length) {
// Not yet implemented
// this.__header.getChildControl("empty-trash-button").show();
this.__header.getChildControl("empty-trash-button").show();
}
}

Expand Down

0 comments on commit d8ddb51

Please sign in to comment.