diff --git a/js/components/ascribe_detail/further_details.js b/js/components/ascribe_detail/further_details.js index 863ed491..db241f3d 100644 --- a/js/components/ascribe_detail/further_details.js +++ b/js/components/ascribe_detail/further_details.js @@ -38,9 +38,9 @@ let FurtherDetails = React.createClass({ GlobalNotificationActions.appendGlobalNotification(notification); }, - submitKey(key){ + submitFile(file){ this.setState({ - otherDataKey: key + otherDataKey: file.key }); }, @@ -78,7 +78,7 @@ let FurtherDetails = React.createClass({ extraData={this.props.extraData} />
diff --git a/js/components/ascribe_forms/input_fineuploader.js b/js/components/ascribe_forms/input_fineuploader.js index ebbaccfc..3bef7ccd 100644 --- a/js/components/ascribe_forms/input_fineuploader.js +++ b/js/components/ascribe_forms/input_fineuploader.js @@ -43,9 +43,9 @@ let InputFileUploader = React.createClass({ }; }, - submitKey(key){ + submitFile(file){ this.setState({ - value: key + value: file.key }); }, @@ -69,7 +69,7 @@ let InputFileUploader = React.createClass({ keyRoutine={this.props.keyRoutine} createBlobRoutine={this.props.createBlobRoutine} validation={this.props.validation} - submitKey={this.submitKey} + submitFile={this.submitFile} setIsUploadReady={this.props.setIsUploadReady} isReadyForFormSubmission={this.props.isReadyForFormSubmission} areAssetsDownloadable={false} diff --git a/js/components/ascribe_uploader/react_s3_fine_uploader.js b/js/components/ascribe_uploader/react_s3_fine_uploader.js index fe6f2611..5b27cb90 100644 --- a/js/components/ascribe_uploader/react_s3_fine_uploader.js +++ b/js/components/ascribe_uploader/react_s3_fine_uploader.js @@ -36,7 +36,7 @@ var ReactS3FineUploader = React.createClass({ React.PropTypes.number ]) }), - submitKey: React.PropTypes.func, + submitFile: React.PropTypes.func, autoUpload: React.PropTypes.bool, debug: React.PropTypes.bool, objectProperties: React.PropTypes.shape({ @@ -393,12 +393,12 @@ var ReactS3FineUploader = React.createClass({ // Only after the blob has been created server-side, we can make the form submittable. this.createBlob(files[id]) .then(() => { - // since the form validation props isReadyForFormSubmission, setIsUploadReady and submitKey + // since the form validation props isReadyForFormSubmission, setIsUploadReady and submitFile // are optional, we'll only trigger them when they're actually defined - if(this.props.submitKey) { - this.props.submitKey(files[id].key); + if(this.props.submitFile) { + this.props.submitFile(files[id]); } else { - console.warn('You didn\'t define submitKey in as a prop in react-s3-fine-uploader'); + console.warn('You didn\'t define submitFile in as a prop in react-s3-fine-uploader'); } // for explanation, check comment of if statement above @@ -458,7 +458,7 @@ var ReactS3FineUploader = React.createClass({ let notification = new GlobalNotificationModel(getLangText('File upload canceled'), 'success', 5000); GlobalNotificationActions.appendGlobalNotification(notification); - // since the form validation props isReadyForFormSubmission, setIsUploadReady and submitKey + // since the form validation props isReadyForFormSubmission, setIsUploadReady and submitFile // are optional, we'll only trigger them when they're actually defined if(this.props.isReadyForFormSubmission && this.props.setIsUploadReady) { if(this.props.isReadyForFormSubmission(this.state.filesToUpload)) { @@ -524,7 +524,7 @@ var ReactS3FineUploader = React.createClass({ GlobalNotificationActions.appendGlobalNotification(notification); } - // since the form validation props isReadyForFormSubmission, setIsUploadReady and submitKey + // since the form validation props isReadyForFormSubmission, setIsUploadReady and submitFile // are optional, we'll only trigger them when they're actually defined if(this.props.isReadyForFormSubmission && this.props.setIsUploadReady) { // also, lets check if after the completion of this upload, diff --git a/js/components/whitelabel/wallet/components/cyland/ascribe_forms/cyland_additional_data_form.js b/js/components/whitelabel/wallet/components/cyland/ascribe_forms/cyland_additional_data_form.js index 13e731ef..123ad2b7 100644 --- a/js/components/whitelabel/wallet/components/cyland/ascribe_forms/cyland_additional_data_form.js +++ b/js/components/whitelabel/wallet/components/cyland/ascribe_forms/cyland_additional_data_form.js @@ -112,7 +112,7 @@ let CylandAdditionalDataForm = React.createClass({