1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00

otherdata delete

This commit is contained in:
diminator 2015-06-30 16:54:45 +02:00
parent fe4d4c6a72
commit 5008ade408
2 changed files with 10 additions and 8 deletions

View File

@ -364,9 +364,6 @@ var ReactS3FineUploader = React.createClass({
let newState = React.addons.update(this.state, {filesToUpload: {$set: updatedFilesToUpload}}); let newState = React.addons.update(this.state, {filesToUpload: {$set: updatedFilesToUpload}});
this.setState(newState); this.setState(newState);
} else { } else {
let notification = new GlobalNotificationModel('Could not load attached files (Further data)', 'success', 5000);
GlobalNotificationActions.appendGlobalNotification(notification);
throw new Error('The session request failed', response); throw new Error('The session request failed', response);
} }
}, },

View File

@ -493,11 +493,16 @@ let EditionFurtherDetails = React.createClass({
handleSuccess={this.showNotification} handleSuccess={this.showNotification}
editable={editable} editable={editable}
edition={this.props.edition} /> edition={this.props.edition} />
<FileUploader <Property
submitKey={this.submitKey} label="Additional files"
setIsUploadReady={this.setIsUploadReady} editable={editable}>
isReadyForFormSubmission={this.isReadyForFormSubmission} <FileUploader
edition={this.props.edition}/> submitKey={this.submitKey}
setIsUploadReady={this.setIsUploadReady}
isReadyForFormSubmission={this.isReadyForFormSubmission}
edition={this.props.edition}/>
</Property>
</Col> </Col>
</Row> </Row>
); );