import { translate } from '../../../../helpers/l10n';
import DropdownIcon from '../../../../components/icons-components/DropdownIcon';
import { withAppState } from '../../../../components/withAppState';
+import { isSonarCloud } from '../../../../helpers/system';
const SETTINGS_URLS = [
'/project/admin',
}
renderCustomMeasuresLink() {
- if (!this.getConfiguration().showManualMeasures) {
+ if (isSonarCloud() || !this.getConfiguration().showManualMeasures) {
return null;
}
return (
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(() =>