diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations/routes.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/organizations/routes.ts | 52 |
1 files changed, 37 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/routes.ts b/server/sonar-web/src/main/js/apps/organizations/routes.ts index 02c2bdaec00..18aa7c3f4ba 100644 --- a/server/sonar-web/src/main/js/apps/organizations/routes.ts +++ b/server/sonar-web/src/main/js/apps/organizations/routes.ts @@ -54,25 +54,47 @@ const routes = [ ] }, { - path: 'members', - component: lazyLoad(() => import('./components/OrganizationMembersContainer')) - }, - { - path: 'rules', - component: OrganizationContainer, - childRoutes: codingRulesRoutes - }, - { - path: 'quality_profiles', - childRoutes: qualityProfilesRoutes + component: lazyLoad(() => + import('./components/OrganizationAccessContainer').then(lib => ({ + default: lib.OrganizationMembersAccess + })) + ), + childRoutes: [ + { + path: 'members', + component: lazyLoad(() => import('./components/OrganizationMembersContainer')) + } + ] }, { - path: 'quality_gates', - component: OrganizationContainer, - childRoutes: qualityGatesRoutes + component: lazyLoad(() => + import('./components/OrganizationAccessContainer').then(lib => ({ + default: lib.OrganizationPrivateAccess + })) + ), + childRoutes: [ + { + path: 'rules', + component: OrganizationContainer, + childRoutes: codingRulesRoutes + }, + { + path: 'quality_profiles', + childRoutes: qualityProfilesRoutes + }, + { + path: 'quality_gates', + component: OrganizationContainer, + childRoutes: qualityGatesRoutes + } + ] }, { - component: lazyLoad(() => import('./components/OrganizationAdminContainer')), + component: lazyLoad(() => + import('./components/OrganizationAccessContainer').then(lib => ({ + default: lib.OrganizationAdminAccess + })) + ), childRoutes: [ { path: 'delete', component: lazyLoad(() => import('./components/OrganizationDelete')) }, { path: 'edit', component: lazyLoad(() => import('./components/OrganizationEdit')) }, |