aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps
diff options
context:
space:
mode:
authorVojtech Suchy <vojtech.suchy@sonarsource.com>2024-11-28 09:23:04 +0100
committersonartech <sonartech@sonarsource.com>2024-11-29 20:03:06 +0000
commit63b65fbfaacd481915707c79f40754f272739eb2 (patch)
treeae25c090ea027082884865b4866a6955cfb76208 /server/sonar-web/src/main/js/apps
parentb81e1c51689f19e01d9c9272e81ec1b4cc52a062 (diff)
downloadsonarqube-63b65fbfaacd481915707c79f40754f272739eb2.tar.gz
sonarqube-63b65fbfaacd481915707c79f40754f272739eb2.zip
CODEFIX-214 Allow admins to hide the AI CodeFix feature
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/AllCategoriesList.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/components/AllCategoriesList.tsx b/server/sonar-web/src/main/js/apps/settings/components/AllCategoriesList.tsx
index 95bd8a9344f..15b4661c0d6 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/AllCategoriesList.tsx
+++ b/server/sonar-web/src/main/js/apps/settings/components/AllCategoriesList.tsx
@@ -29,7 +29,7 @@ import { translate } from '../../../helpers/l10n';
import { getGlobalSettingsUrl, getProjectSettingsUrl } from '../../../helpers/urls';
import { Feature } from '../../../types/features';
import { Component } from '../../../types/types';
-import { CATEGORY_OVERRIDES } from '../constants';
+import { AI_CODE_FIX_CATEGORY, CATEGORY_OVERRIDES } from '../constants';
import { getCategoryName } from '../utils';
import { ADDITIONAL_CATEGORIES } from './AdditionalCategories';
@@ -74,7 +74,7 @@ function CategoriesList(props: Readonly<CategoriesListProps>) {
c.displayTab &&
availableForCurrentMenu &&
(props.hasFeature(Feature.BranchSupport) || !c.requiresBranchSupport) &&
- (props.hasFeature(Feature.FixSuggestions) || c.key !== 'codefix')
+ (props.hasFeature(Feature.FixSuggestions) || c.key !== AI_CODE_FIX_CATEGORY)
);
}),
);