Skip to content

Commit ac0553b

Browse files
committed
undo
1 parent 1fad03d commit ac0553b

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

services/static-webserver/client/source/class/osparc/desktop/MainPage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ qx.Class.define("osparc.desktop.MainPage", {
7272
preloadPromises.push(osparc.store.Jobs.getInstance().fetchJobsLatest());
7373
preloadPromises.push(osparc.data.Permissions.getInstance().fetchPermissions());
7474
preloadPromises.push(osparc.data.Permissions.getInstance().fetchFunctionPermissions());
75-
preloadPromises.push(osparc.store.Groups.getInstance().fetchGroups());
7675
Promise.all(preloadPromises)
7776
.then(() => {
7877
const mainStack = this.__createMainStack();

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ qx.Class.define("osparc.store.Groups", {
6666
members: {
6767
groupsCached: null,
6868

69-
fetchGroups: function() {
69+
__fetchGroups: function() {
7070
if (osparc.auth.Data.getInstance().isGuest()) {
7171
return new Promise(resolve => {
7272
resolve([]);
@@ -116,20 +116,9 @@ qx.Class.define("osparc.store.Groups", {
116116
});
117117
},
118118

119-
fetchGroupMembers: function() {
120-
// reset Users
121-
const usersStore = osparc.store.Users.getInstance();
122-
usersStore.resetUsers();
123-
const orgs = this.getOrganizations();
124-
const promises = Object.keys(orgs).map(orgId => this.__fetchGroupMembers(orgId));
125-
Promise.all(promises)
126-
.then(() => resolve())
127-
.catch(err => console.error(err));
128-
},
129-
130119
fetchGroupsAndMembers: function() {
131120
return new Promise(resolve => {
132-
this.fetchGroups()
121+
this.__fetchGroups()
133122
.then(orgs => {
134123
// reset Users
135124
const usersStore = osparc.store.Users.getInstance();

0 commit comments

Comments
 (0)