aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-01-31 13:46:14 +0100
committerStas Vilchik <stas-vilchik@users.noreply.github.com>2017-02-01 09:43:03 +0100
commita14a5717cd31d3358d5ba09b36696caf08518546 (patch)
tree5d444c08b851dddd280496175f332e7d3e9049d1 /server/sonar-web/src/main/js/app
parent2bb7dc7da6a7fe958d24c233844f5944edbdaf8d (diff)
downloadsonarqube-a14a5717cd31d3358d5ba09b36696caf08518546.tar.gz
sonarqube-a14a5717cd31d3358d5ba09b36696caf08518546.zip
SONAR-8658 Create organization's permission templates page
Diffstat (limited to 'server/sonar-web/src/main/js/app')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js b/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js
index 417f89a1553..9879cec41d5 100644
--- a/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js
+++ b/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js
@@ -75,9 +75,9 @@ class SettingsNav extends React.Component {
<div className="container">
<ul className="nav navbar-nav nav-crumbs">
<li>
- <IndexLink to="/settings">
- {translate('layout.settings')}
- </IndexLink>
+ <IndexLink to="/settings">
+ {translate('layout.settings')}
+ </IndexLink>
</li>
</ul>
@@ -138,11 +138,13 @@ class SettingsNav extends React.Component {
{translate('global_permissions.page')}
</IndexLink>
</li>
- <li>
- <IndexLink to="/permission_templates" activeClassName="active">
- {translate('permission_templates')}
- </IndexLink>
- </li>
+ {!this.props.customOrganizations && (
+ <li>
+ <IndexLink to="/permission_templates" activeClassName="active">
+ {translate('permission_templates')}
+ </IndexLink>
+ </li>
+ )}
</ul>
</li>