*/
import React from 'react';
import { PermissionType } from '../propTypes';
+import HelpTooltip from '../../../components/controls/HelpTooltip';
import { translate } from '../../../helpers/l10n';
+import { isSonarCloud } from '../../../helpers/system';
export default class PermissionCell extends React.PureComponent {
static propTypes = {
<div className="permission-column-inner">
<ul>
{p.withProjectCreator && (
- <li className="little-spacer-bottom">
+ <li className="little-spacer-bottom display-flex-center">
{translate('permission_templates.project_creators')}
+ <HelpTooltip
+ className="little-spacer-left"
+ overlay={translate(
+ isSonarCloud()
+ ? 'permission_templates.project_creators.explanation.sonarcloud'
+ : 'permission_templates.project_creators.explanation'
+ )}
+ />
</li>
)}
<li className="little-spacer-bottom">
import Avatar from '../../../../components/ui/Avatar';
import { translate } from '../../../../helpers/l10n';
import { isPermissionDefinitionGroup } from '../../utils';
+import { isSonarCloud } from '../../../../helpers/system';
interface Props {
onToggle: (user: T.PermissionUser, permission: string) => Promise<void>;
<strong>{user.name}</strong>
</div>
<div className="little-spacer-top" style={{ whiteSpace: 'normal' }}>
- {translate('permission_templates.project_creators.explanation')}
+ {translate(
+ isSonarCloud()
+ ? 'permission_templates.project_creators.explanation.sonarcloud'
+ : 'permission_templates.project_creators.explanation'
+ )}
</div>
</div>
</td>
permission_template.key_pattern=Project key pattern
permission_template.key_pattern.description=Should be a valid regular expression
permission_template.default_for=Default for {0}
-permission_templates.project_creators=Project/Portfolio/Application Creators
-permission_templates.project_creators.explanation=When a new project / portfolio / application is created, the user who creates it will receive these permissions on the it.
+permission_templates.project_creators=Creators
+permission_templates.project_creators.explanation=When a new project, portfolio or application is created, the user who creates it will receive these permissions.
+permission_templates.project_creators.explanation.sonarcloud=When a new project is created, the user who creates it will receive these permissions.
permission_templates.bulk_apply_permission_template=Bulk Apply Permission Template
permission_templates.bulk_apply_permission_template.apply_to_selected=You're about to apply the selected permission template to {0} selected item(s).
permission_templates.bulk_apply_permission_template.apply_to_all=You're about to apply the selected permission template to {0} item(s).