Skip to content

Commit f1af430

Browse files
committed
workspacesContainer visibility
1 parent 9b6ab50 commit f1af430

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ qx.Class.define("osparc.dashboard.ResourceContainerManager", {
3434

3535
if (resourceType === "study") {
3636
const workspacesContainer = this.__workspacesContainer = new osparc.dashboard.CardContainer();
37+
this.__workspacesContainer.exclude();
3738
this._add(workspacesContainer);
3839

3940
const foldersContainer = this.__foldersContainer = new osparc.dashboard.CardContainer();
@@ -386,6 +387,7 @@ qx.Class.define("osparc.dashboard.ResourceContainerManager", {
386387
reloadWorkspaces: function() {
387388
if (this.__workspacesContainer) {
388389
this.__workspacesContainer.removeAll();
390+
this.__workspacesContainer.exclude();
389391
}
390392
let workspacesCards = [];
391393
this.__workspacesList.forEach(workspaceData => workspacesCards.push(this.__workspaceToCard(workspaceData)));
@@ -394,11 +396,13 @@ qx.Class.define("osparc.dashboard.ResourceContainerManager", {
394396

395397
addNewWorkspaceCard: function(newWorkspaceCard) {
396398
this.__workspacesContainer.addAt(newWorkspaceCard, 0);
399+
this.__workspacesContainer.show();
397400
},
398401

399402
__workspaceToCard: function(workspaceData) {
400403
const card = this.__createWorkspaceCard(workspaceData);
401404
this.__workspacesContainer.add(card);
405+
this.__workspacesContainer.show();
402406
return card;
403407
},
404408

0 commit comments

Comments
 (0)