diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-02-18 17:12:52 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-02-18 17:22:01 +0100 |
commit | 5da5452b322aaa9c6f3fbb313f05e54195c29458 (patch) | |
tree | 734eef27a6f4f8a465039aedb51b331a6eb1f559 /server/sonar-web/src/main/js/apps/background-tasks | |
parent | 6c4ece6ba3bc482573c1ddbaa452ed16951250ab (diff) | |
download | sonarqube-5da5452b322aaa9c6f3fbb313f05e54195c29458.tar.gz sonarqube-5da5452b322aaa9c6f3fbb313f05e54195c29458.zip |
SONAR-7191 reset search when filter similar components
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks')
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/containers/TasksContainer.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/containers/TasksContainer.js b/server/sonar-web/src/main/js/apps/background-tasks/containers/TasksContainer.js index fe962bc652c..994a04ec57e 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/containers/TasksContainer.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/containers/TasksContainer.js @@ -21,6 +21,7 @@ import { connect } from 'react-redux'; import Tasks from '../components/Tasks'; import { cancelTask, filterTasks } from '../store/actions'; +import { DEFAULT_FILTERS } from '../constants'; function mapStateToProps (state) { return { @@ -33,7 +34,7 @@ function mapStateToProps (state) { function mapDispatchToProps (dispatch) { return { onCancelTask: (task) => dispatch(cancelTask(task)), - onFilterTask: (task) => dispatch(filterTasks({ query: task.componentKey })) + onFilterTask: (task) => dispatch(filterTasks(Object.assign({}, DEFAULT_FILTERS, { query: task.componentKey }))) }; } |