From a8ccf13f917563dd8ed32a6b8c3c47b5c3970477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 17 Nov 2015 12:03:22 +0100 Subject: [PATCH] Remove uploadStarted prop from ReactS3Fineuploader as it was replaced with setIsUploadReady --- .../ascribe_detail/further_details_fileuploader.js | 2 -- js/components/ascribe_uploader/react_s3_fine_uploader.js | 6 ------ .../cyland/cyland_forms/cyland_additional_data_form.js | 7 ------- 3 files changed, 15 deletions(-) diff --git a/js/components/ascribe_detail/further_details_fileuploader.js b/js/components/ascribe_detail/further_details_fileuploader.js index 9a1f091c..5c9a70d0 100644 --- a/js/components/ascribe_detail/further_details_fileuploader.js +++ b/js/components/ascribe_detail/further_details_fileuploader.js @@ -13,7 +13,6 @@ import { getCookie } from '../../utils/fetch_api_utils'; let FurtherDetailsFileuploader = React.createClass({ propTypes: { - uploadStarted: React.PropTypes.func, pieceId: React.PropTypes.number, otherData: React.PropTypes.arrayOf(React.PropTypes.object), setIsUploadReady: React.PropTypes.func, @@ -46,7 +45,6 @@ let FurtherDetailsFileuploader = React.createClass({ name="other_data_key" label="Additional files"> 0) { - this.props.uploadStarted(); - } - // if multiple is set to false and user drops multiple files into the dropzone, // take the first one and notify user that only one file can be submitted if(!this.props.multiple && files.length > 1) { diff --git a/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js b/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js index a7631d95..7ef74caa 100644 --- a/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js +++ b/js/components/whitelabel/wallet/components/cyland/cyland_forms/cyland_additional_data_form.js @@ -64,12 +64,6 @@ let CylandAdditionalDataForm = React.createClass({ }, - uploadStarted() { - this.setState({ - isUploadReady: false - }); - }, - setIsUploadReady(isReady) { this.setState({ isUploadReady: isReady @@ -184,7 +178,6 @@ let CylandAdditionalDataForm = React.createClass({