aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/permission-templates/components
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-12-04 11:37:10 +0100
committerSonarTech <sonartech@sonarsource.com>2018-12-07 20:21:02 +0100
commit585f3438a50dc49a31f05948451d1dd333268cbe (patch)
tree166875d1aae4c358a2cfcdb634de7cc2e91c0f13 /server/sonar-web/src/main/js/apps/permission-templates/components
parent4eb2f9bc75fc56295d4345c2a1272c0e0b438738 (diff)
downloadsonarqube-585f3438a50dc49a31f05948451d1dd333268cbe.tar.gz
sonarqube-585f3438a50dc49a31f05948451d1dd333268cbe.zip
SONAR-11534 fix glitch on the permission templates page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permission-templates/components')
-rw-r--r--server/sonar-web/src/main/js/apps/permission-templates/components/PermissionCell.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/PermissionCell.js b/server/sonar-web/src/main/js/apps/permission-templates/components/PermissionCell.js
index ec89cc25d5e..aa447f2aaf7 100644
--- a/server/sonar-web/src/main/js/apps/permission-templates/components/PermissionCell.js
+++ b/server/sonar-web/src/main/js/apps/permission-templates/components/PermissionCell.js
@@ -19,7 +19,9 @@
*/
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 = {
@@ -34,8 +36,16 @@ export default class PermissionCell extends React.PureComponent {
<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">