aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx
diff options
context:
space:
mode:
authorguillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com>2023-11-23 15:07:03 +0100
committersonartech <sonartech@sonarsource.com>2023-11-24 20:02:44 +0000
commit086f2c1ced0da956219181958767683e1d4bb63b (patch)
treefae70159d9d6a8d1c3d2a0aaeb61a9d64d8d5cea /server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx
parent798fac2eb3d5e02b0ed8b1c520a12d9e27b1d6c0 (diff)
downloadsonarqube-086f2c1ced0da956219181958767683e1d4bb63b.tar.gz
sonarqube-086f2c1ced0da956219181958767683e1d4bb63b.zip
SONAR-21086 Use new endpoint '/api/v2/authorizations/groups'
Diffstat (limited to 'server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx9
1 files changed, 3 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx b/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx
index 6b491854dbe..a4b4ad084a2 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx
+++ b/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx
@@ -36,12 +36,9 @@ export default function DeleteGroupForm(props: Props) {
const { mutate: deleteGroup } = useDeleteGroupMutation();
const onSubmit = () => {
- deleteGroup(
- { name: group.name },
- {
- onSuccess: props.onClose,
- },
- );
+ deleteGroup(group.id, {
+ onSuccess: props.onClose,
+ });
};
const header = translate('groups.delete_group');