aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js b/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js
index 46da2cbc416..a7f6ffe3e29 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+ /* @flow */
import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
@@ -30,17 +31,17 @@ export default class Stats extends React.Component {
onCancelAllPending: React.PropTypes.func.isRequired
};
- shouldComponentUpdate (nextProps, nextState) {
+ shouldComponentUpdate (nextProps: any, nextState: any) {
return shallowCompare(this, nextProps, nextState);
}
- handleCancelAllPending (e) {
+ handleCancelAllPending (e: any) {
e.preventDefault();
e.target.blur();
this.props.onCancelAllPending();
}
- handleShowFailing (e) {
+ handleShowFailing (e: any) {
e.preventDefault();
e.target.blur();
this.props.onShowFailing();