Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
you need to get the spaces first
Browse files Browse the repository at this point in the history
  • Loading branch information
James C. Scott committed Aug 9, 2017
1 parent 30bb761 commit 9a1f942
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions static_src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ export function org(orgGuid, next) {
spaceActions.changeCurrentSpace();
appActions.changeCurrentApp();

orgActions.toggleSpaceMenu(orgGuid);
orgActions.fetch(orgGuid);
cfApi.fetchSpaces().then(() => spaceActions.fetchAllForOrg(orgGuid));
userActions.changeCurrentlyViewedType('org_users');
userActions.fetchOrgUsers(orgGuid);
userActions.fetchOrgUserRoles(orgGuid);
routerActions.navigate(OrgContainer);
next();
spaceActions.fetchAll().then(() => {
orgActions.toggleSpaceMenu(orgGuid);
orgActions.fetch(orgGuid);
cfApi.fetchSpaces().then(() => spaceActions.fetchAllForOrg(orgGuid));
userActions.changeCurrentlyViewedType('org_users');
userActions.fetchOrgUsers(orgGuid);
userActions.fetchOrgUserRoles(orgGuid);
routerActions.navigate(OrgContainer);
next();
});
}

export function space(orgGuid, spaceGuid, next) {
Expand Down

0 comments on commit 9a1f942

Please sign in to comment.