From: stanislavh Date: Tue, 5 Dec 2023 10:07:07 +0000 (+0100) Subject: SONAR-21132 Do not show CCT fields in edit dialog X-Git-Tag: 10.4.0.87286~333 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=631ea82186d2093a77ac9d76129c742cddc72518;p=sonarqube.git SONAR-21132 Do not show CCT fields in edit dialog Co-authored-by: Benjamin Raymond <31401273+7PH@users.noreply.github.com> --- diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx index de13a247820..dce99ab2ba7 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx @@ -307,26 +307,30 @@ export default function CustomRuleFormModal(props: Readonly) { {NameField} {KeyField} - -
- - -
- + {/* do not allow to change CCT fields of existing rule */} + {!customRule && !reactivating && ( + <> +
+ + +
+ + + )} {StatusField} {DescriptionField} {templateParams.map(renderParameterField)}