aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-10-06 14:28:02 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-10-06 14:28:02 +0200
commit38127ca743bc2dea853f681f7f6b5901678e9c3c (patch)
treed2b9a289ad118cd768c30fbd9a76fe777589c71f
parent8cb9998c835221d527572d76753a587886df0fa4 (diff)
downloadsonarqube-38127ca743bc2dea853f681f7f6b5901678e9c3c.tar.gz
sonarqube-38127ca743bc2dea853f681f7f6b5901678e9c3c.zip
use showBackgroundTasks to render component navigation
-rw-r--r--server/sonar-web/src/main/js/apps/nav/component/component-nav-menu.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/nav/component/component-nav-menu.jsx b/server/sonar-web/src/main/js/apps/nav/component/component-nav-menu.jsx
index cd6b3adae70..b7db14235b9 100644
--- a/server/sonar-web/src/main/js/apps/nav/component/component-nav-menu.jsx
+++ b/server/sonar-web/src/main/js/apps/nav/component/component-nav-menu.jsx
@@ -47,6 +47,7 @@ export default React.createClass({
renderAdministration() {
let shouldShowAdministration =
this.props.conf.showActionPlans ||
+ this.props.conf.showBackgroundTasks ||
this.props.conf.showDeletion ||
this.props.conf.showHistory ||
this.props.conf.showLinks ||
@@ -150,7 +151,9 @@ export default React.createClass({
},
renderBackgroundTasksLink() {
- // TODO check permissions
+ if (!this.props.conf.showBackgroundTasks) {
+ return null;
+ }
const url = `/project/background_tasks?id=${encodeURIComponent(this.props.component.key)}`;
return this.renderLink(url, window.t('background_tasks.page'), '/project/background_tasks');
},