diff options
author | Jacek <jacek.poreda@sonarsource.com> | 2022-11-21 11:45:35 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-21 20:02:56 +0000 |
commit | 522c74b001f7f6f610978d8076c6403d995cb784 (patch) | |
tree | ba692b7118b6cfe295bde9eb14a485b99e0e03dc /server/sonar-web/src/main/js/apps/permissions | |
parent | 131c3a370a708720d631e986b914080543fae20d (diff) | |
download | sonarqube-522c74b001f7f6f610978d8076c6403d995cb784.tar.gz sonarqube-522c74b001f7f6f610978d8076c6403d995cb784.zip |
MMF-2745 Default permission improvements
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permissions')
-rw-r--r-- | server/sonar-web/src/main/js/apps/permissions/shared/components/GroupHolder.tsx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/permissions/shared/components/GroupHolder.tsx b/server/sonar-web/src/main/js/apps/permissions/shared/components/GroupHolder.tsx index 0203577dab6..71bf88da055 100644 --- a/server/sonar-web/src/main/js/apps/permissions/shared/components/GroupHolder.tsx +++ b/server/sonar-web/src/main/js/apps/permissions/shared/components/GroupHolder.tsx @@ -19,6 +19,7 @@ */ import { without } from 'lodash'; import * as React from 'react'; +import { translate } from '../../../../helpers/l10n'; import GroupIcon from '../../../../components/icons/GroupIcon'; import { PermissionDefinitions, PermissionGroup } from '../../../../types/types'; import { isPermissionDefinitionGroup } from '../../utils'; @@ -35,6 +36,8 @@ interface State { loading: string[]; } +const ANYONE = 'Anyone'; + export default class GroupHolder extends React.PureComponent<Props, State> { mounted = false; state: State = { loading: [] }; @@ -74,9 +77,14 @@ export default class GroupHolder extends React.PureComponent<Props, State> { <div className="max-width-100"> <div className="max-width-100 text-ellipsis"> <strong>{group.name}</strong> + {group.name === ANYONE && ( + <span className="spacer-left badge badge-error">{translate('deprecated')}</span> + )} </div> <div className="little-spacer-top" style={{ whiteSpace: 'normal' }}> - {group.description} + {group.name === ANYONE + ? translate('user_groups.anyone.description') + : group.description} </div> </div> </div> |