aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"/>