From 522c74b001f7f6f610978d8076c6403d995cb784 Mon Sep 17 00:00:00 2001 From: Jacek Date: Mon, 21 Nov 2022 11:45:35 +0100 Subject: MMF-2745 Default permission improvements --- server/sonar-web/src/main/js/apps/groups/components/List.tsx | 1 + .../components/__tests__/__snapshots__/List-test.tsx.snap | 5 +++++ .../main/js/apps/permissions/shared/components/GroupHolder.tsx | 10 +++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) (limited to 'server/sonar-web') diff --git a/server/sonar-web/src/main/js/apps/groups/components/List.tsx b/server/sonar-web/src/main/js/apps/groups/components/List.tsx index a07ca958903..e3808393622 100644 --- a/server/sonar-web/src/main/js/apps/groups/components/List.tsx +++ b/server/sonar-web/src/main/js/apps/groups/components/List.tsx @@ -50,6 +50,7 @@ export default function List(props: Props) { {translate('groups.anyone')} + {translate('deprecated')} diff --git a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap index 3598b1a868d..2db446a6c97 100644 --- a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap @@ -38,6 +38,11 @@ exports[`should render 1`] = ` > groups.anyone + + deprecated + { mounted = false; state: State = { loading: [] }; @@ -74,9 +77,14 @@ export default class GroupHolder extends React.PureComponent {
{group.name} + {group.name === ANYONE && ( + {translate('deprecated')} + )}
- {group.description} + {group.name === ANYONE + ? translate('user_groups.anyone.description') + : group.description}
-- cgit v1.2.3