diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-02-18 17:15:47 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-02-18 17:22:01 +0100 |
commit | 9ab21a8a2994ba43689b402ba6fcf443becae8ef (patch) | |
tree | a036c1e2c91b90f758b19c6bdceeeee77b29f902 /server/sonar-web/src/main/js/apps/background-tasks/components/Search.js | |
parent | 5da5452b322aaa9c6f3fbb313f05e54195c29458 (diff) | |
download | sonarqube-9ab21a8a2994ba43689b402ba6fcf443becae8ef.tar.gz sonarqube-9ab21a8a2994ba43689b402ba6fcf443becae8ef.zip |
SONAR-7191 add "Reset" button
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks/components/Search.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/components/Search.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/Search.js b/server/sonar-web/src/main/js/apps/background-tasks/components/Search.js index 74344b23cf4..961d56b3ebd 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/Search.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/Search.js @@ -64,6 +64,11 @@ export default React.createClass({ this.props.onRefresh(); }, + handleReset(e) { + e.preventDefault(); + this.props.onReset(); + }, + render() { return ( <section className="big-spacer-top big-spacer-bottom"> @@ -113,6 +118,13 @@ export default React.createClass({ disabled={this.props.fetching}> {translate('reload')} </button> + {' '} + <button + ref="resetButton" + onClick={this.handleReset} + disabled={this.props.fetching}> + {translate('reset_verb')} + </button> </li> </ul> </section> |