diff --git a/js/components/ascribe_detail/further_details_fileuploader.js b/js/components/ascribe_detail/further_details_fileuploader.js index 064b6a77..a6a84416 100644 --- a/js/components/ascribe_detail/further_details_fileuploader.js +++ b/js/components/ascribe_detail/further_details_fileuploader.js @@ -13,6 +13,7 @@ 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, @@ -34,7 +35,7 @@ let FurtherDetailsFileuploader = React.createClass({ // 1. there is no other_data => do not show the fileuploader at all // 2. there is other_data, but user has no edit rights => show fileuploader but without action buttons // 3. both other_data and editable are defined or true => show fileuploader with all action buttons - if (!this.props.editable && (!this.props.otherData || this.props.otherData.length == 0)){ + if (!this.props.editable && (!this.props.otherData || this.props.otherData.length === 0)) { return null; } let otherDataIds = this.props.otherData ? this.props.otherData.map((data)=>{return data.id; }).join() : null; @@ -43,6 +44,7 @@ let FurtherDetailsFileuploader = React.createClass({ + overrideForm={!!this.props.email}> + overrideForm={!!this.props.gallery}> 1) { 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 397e5d6d..b97d568c 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 @@ -48,6 +48,12 @@ let CylandAdditionalDataForm = React.createClass({ }, + uploadStarted() { + this.setState({ + isUploadReady: false + }); + }, + setIsUploadReady(isReady) { this.setState({ isUploadReady: isReady @@ -94,28 +100,29 @@ let CylandAdditionalDataForm = React.createClass({ + editable={!this.props.disabled}> + editable={!this.props.disabled}>