diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2018-12-17 13:46:53 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-12-21 20:21:01 +0100 |
commit | a0f2c285cce09309029e75de7b69a41c32620aaa (patch) | |
tree | 0ee915e9fd163dd6b46f74bd4fbf73d3e46f94e6 /server/sonar-web/src/main/js/app/utils | |
parent | 35d4defcf214eec9f04f00860538199f82f997c1 (diff) | |
download | sonarqube-a0f2c285cce09309029e75de7b69a41c32620aaa.tar.gz sonarqube-a0f2c285cce09309029e75de7b69a41c32620aaa.zip |
SONARCLOUD-301 Disable Custom Measures page on SonarCloud
Diffstat (limited to 'server/sonar-web/src/main/js/app/utils')
-rw-r--r-- | server/sonar-web/src/main/js/app/utils/startReactApp.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/app/utils/startReactApp.tsx b/server/sonar-web/src/main/js/app/utils/startReactApp.tsx index 721abda0ba5..3b224a1b3e5 100644 --- a/server/sonar-web/src/main/js/app/utils/startReactApp.tsx +++ b/server/sonar-web/src/main/js/app/utils/startReactApp.tsx @@ -232,10 +232,12 @@ export default function startReactApp( childRoutes={projectQualityProfilesRoutes} /> <Route component={lazyLoad(() => import('../components/ProjectAdminContainer'))}> - <RouteWithChildRoutes - path="custom_measures" - childRoutes={customMeasuresRoutes} - /> + {!isSonarCloud() && ( + <RouteWithChildRoutes + path="custom_measures" + childRoutes={customMeasuresRoutes} + /> + )} <Route path="project/admin/extension/:pluginKey/:extensionKey" component={lazyLoad(() => |