Skip to content

Commit a0879f9

Browse files
committed
plus button
1 parent 8765c2c commit a0879f9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,14 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
426426
this._resourcesContainer.setWorkspacesToList(this.__workspacesList);
427427
this._resourcesContainer.reloadWorkspaces();
428428

429+
this.__addNewWorkspaceButton();
430+
},
431+
432+
__addNewWorkspaceButton: function() {
433+
if (this.getCurrentContext() !== "workspaces") {
434+
return;
435+
}
436+
429437
const newWorkspaceCard = new osparc.dashboard.WorkspaceButtonNew();
430438
newWorkspaceCard.setCardKey("new-workspace");
431439
newWorkspaceCard.subscribeToFilterGroup("searchBarFilter");

services/static-webserver/client/source/class/osparc/store/Workspaces.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ qx.Class.define("osparc.store.Workspaces", {
4646
thumbnail,
4747
};
4848
},
49+
50+
curateOrderBy: function(orderBy) {
51+
const curatedOrderBy = osparc.utils.Utils.deepCloneObject(orderBy);
52+
if (curatedOrderBy.field !== "name") {
53+
// only "modified_at" and "name" supported
54+
curatedOrderBy.field = "modified_at";
55+
}
56+
return curatedOrderBy;
57+
},
4958
},
5059

5160
members: {

0 commit comments

Comments
 (0)