From 38127ca743bc2dea853f681f7f6b5901678e9c3c Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 6 Oct 2015 14:28:02 +0200 Subject: [PATCH] use showBackgroundTasks to render component navigation --- .../src/main/js/apps/nav/component/component-nav-menu.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'); }, -- 2.39.5