aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-08 11:07:13 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-08 11:08:03 +0100
commitbc42f31f26309e25ce11b1749a9134fb31ebf359 (patch)
treec69bfbe84f74f205ab5728888dbdca7cf20e7538 /server/sonar-web/src/main/js/apps
parentf42d8578c0ba08dfd2c214c7cbd1ea0b8d5267c1 (diff)
downloadsonarqube-bc42f31f26309e25ce11b1749a9134fb31ebf359.tar.gz
sonarqube-bc42f31f26309e25ce11b1749a9134fb31ebf359.zip
fix background tasks page on a project level
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/main.js7
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/search.js2
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/tasks.js3
3 files changed, 8 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/main.js b/server/sonar-web/src/main/js/apps/background-tasks/main.js
index f37705548da..9743b91f0ea 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/main.js
+++ b/server/sonar-web/src/main/js/apps/background-tasks/main.js
@@ -201,9 +201,10 @@ export default React.createClass({
onDateChange={this.onDateChange}
onSearch={this.onSearch}/>
- <Tasks tasks={[].concat(this.state.queue, this.state.activity)}
- onTaskCanceled={this.onTaskCanceled}
- onFilter={this.handleFilter}/>
+ <Tasks {...this.props}
+ tasks={[].concat(this.state.queue, this.state.activity)}
+ onTaskCanceled={this.onTaskCanceled}
+ onFilter={this.handleFilter}/>
<ListFooter count={this.state.queue.length + this.state.activity.length}
total={this.state.queue.length + this.state.activityTotal}
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/search.js b/server/sonar-web/src/main/js/apps/background-tasks/search.js
index 6a6d96a7916..92f9cc5d1a8 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/search.js
+++ b/server/sonar-web/src/main/js/apps/background-tasks/search.js
@@ -94,7 +94,7 @@ export default React.createClass({
},
renderSearchBox() {
- if (this.props.options.componentId) {
+ if (this.props.options.component) {
// do not render search form on the project-level page
return null;
}
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/tasks.js b/server/sonar-web/src/main/js/apps/background-tasks/tasks.js
index 1b71cf473b1..ffd4af2782d 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/tasks.js
+++ b/server/sonar-web/src/main/js/apps/background-tasks/tasks.js
@@ -93,6 +93,9 @@ export default React.createClass({
},
renderFilter(task) {
+ if (this.props.options.component) {
+ return null;
+ }
return <td className="thin nowrap">
<a onClick={this.handleFilter.bind(this, task)} className="icon-filter icon-half-transparent spacer-left" href="#"
title={`Show only "${task.componentName}" tasks`} data-toggle="tooltip"/>