]> source.dussan.org Git - sonarqube.git/commitdiff
disable global rules page on sonarcloud
authorStas Vilchik <stas.vilchik@sonarsource.com>
Wed, 2 Jan 2019 13:17:21 +0000 (14:17 +0100)
committerSonarTech <sonartech@sonarsource.com>
Mon, 7 Jan 2019 19:21:00 +0000 (20:21 +0100)
server/sonar-web/src/main/js/app/utils/startReactApp.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx

index 519e32be37a74aea67a0acf2f2b6d1a40ee16be0..68ae6f8ccb595afe28334758a99dccc2d7061e7c 100644 (file)
@@ -169,7 +169,9 @@ export default function startReactApp(
 
               <Route component={GlobalContainer}>
                 <RouteWithChildRoutes path="account" childRoutes={accountRoutes} />
-                <RouteWithChildRoutes path="coding_rules" childRoutes={codingRulesRoutes} />
+                {!isSonarCloud() && (
+                  <RouteWithChildRoutes path="coding_rules" childRoutes={codingRulesRoutes} />
+                )}
                 <RouteWithChildRoutes path="component" childRoutes={componentRoutes} />
                 <RouteWithChildRoutes path="documentation" childRoutes={documentationRoutes} />
                 <Route path="explore" component={Explore}>
index f8d4982c775a21fe111867a677a74c70682f7ba6..475e257de86fefa2bae3fb9d35d6432793591403 100644 (file)
@@ -101,8 +101,6 @@ interface State {
   selected?: string;
 }
 
-// TODO redirect to default organization's rules page
-
 export class App extends React.PureComponent<Props, State> {
   mounted = false;