File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments