diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js b/server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js index edbeafecf9e..97d48d20d8b 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.js +++ b/server/sonar-web/src/main/js/apps/settings/components/DefinitionChanges.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'; import { translate } from '../../../helpers/l10n'; @@ -27,17 +28,17 @@ export default class DefinitionChanges extends React.Component { onCancel: React.PropTypes.func.isRequired }; - shouldComponentUpdate (nextProps, nextState) { + shouldComponentUpdate (nextProps: {}, nextState: ?{}) { return shallowCompare(this, nextProps, nextState); } - handleSaveClick (e) { + handleSaveClick (e: any) { e.preventDefault(); e.target.blur(); this.props.onSave(); } - handleCancelChange (e) { + handleCancelChange (e: any) { e.preventDefault(); e.target.blur(); this.props.onCancel(); |