diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-09-10 15:40:46 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-09-25 20:21:00 +0200 |
commit | c003387eb63a644d9e887dcb7799d962ec27310c (patch) | |
tree | 2b177293cfb5b28bbc726b5f6d27d23f8a120ff3 /server/sonar-web/src/main/js/app/utils | |
parent | 580476aa07868b48bf53f9a04e5daba97d2862c2 (diff) | |
download | sonarqube-c003387eb63a644d9e887dcb7799d962ec27310c.tar.gz sonarqube-c003387eb63a644d9e887dcb7799d962ec27310c.zip |
SONARCLOUD-120 Add new "Create Organization" page (#691)
Diffstat (limited to 'server/sonar-web/src/main/js/app/utils')
-rw-r--r-- | server/sonar-web/src/main/js/app/utils/startReactApp.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/app/utils/startReactApp.js b/server/sonar-web/src/main/js/app/utils/startReactApp.js index d521a298da7..474e9f56083 100644 --- a/server/sonar-web/src/main/js/app/utils/startReactApp.js +++ b/server/sonar-web/src/main/js/app/utils/startReactApp.js @@ -67,6 +67,7 @@ import webhooksRoutes from '../../apps/webhooks/routes'; import { maintenanceRoutes, setupRoutes } from '../../apps/maintenance/routes'; import { globalPermissionsRoutes, projectPermissionsRoutes } from '../../apps/permissions/routes'; import { lazyLoad } from '../../components/lazyLoad'; +import { isSonarCloud } from '../../helpers/system'; function handleUpdate() { const { action } = this.state.location; @@ -171,6 +172,14 @@ const startReactApp = (lang, currentUser, appState) => { /> <Route path="issues" component={IssuesPageSelector} /> <Route path="onboarding" childRoutes={onboardingRoutes} /> + {isSonarCloud() && ( + <Route + path="create-organization" + component={lazyLoad(() => + import('../../apps/create/organization/CreateOrganization') + )} + /> + )} <Route path="organizations" childRoutes={organizationsRoutes} /> <Route path="projects" childRoutes={projectsRoutes} /> <Route path="quality_gates" childRoutes={qualityGatesRoutes} /> |