Skip to content

Commit d8ddb51

Browse files
committed
Empty Trash button
1 parent 1c2658a commit d8ddb51

File tree

1 file changed

+3
-6
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
193193
this.__setWorkspacesToList(workspaces);
194194
if (this.getCurrentContext() === "trash") {
195195
if (workspaces.length) {
196-
// Not yet implemented
197-
// this.__header.getChildControl("empty-trash-button").show();
196+
this.__header.getChildControl("empty-trash-button").show();
198197
}
199198
}
200199
})
@@ -240,8 +239,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
240239
this.__setFoldersToList(folders);
241240
if (this.getCurrentContext() === "trash") {
242241
if (folders.length) {
243-
// Not yet implemented
244-
// this.__header.getChildControl("empty-trash-button").show();
242+
this.__header.getChildControl("empty-trash-button").show();
245243
}
246244
}
247245
})
@@ -312,8 +310,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
312310

313311
if (this.getCurrentContext() === "trash") {
314312
if (this._resourcesList.length) {
315-
// Not yet implemented
316-
// this.__header.getChildControl("empty-trash-button").show();
313+
this.__header.getChildControl("empty-trash-button").show();
317314
}
318315
}
319316

0 commit comments

Comments
 (0)