mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
fix additional files button bug
This commit is contained in:
parent
f54d7bb85c
commit
18634ffe50
@ -709,8 +709,10 @@ var ReactS3FineUploader = React.createClass({
|
||||
// if we're not hashing the files locally, we're just going to hand them over to fineuploader
|
||||
// to upload them to the server
|
||||
} else {
|
||||
this.state.uploader.addFiles(files);
|
||||
this.synchronizeFileLists(files);
|
||||
if(files.length > 0) {
|
||||
this.state.uploader.addFiles(files);
|
||||
this.synchronizeFileLists(files);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -61,10 +61,9 @@ let CylandAdditionalDataForm = React.createClass({
|
||||
},
|
||||
|
||||
isReadyForFormSubmission(files) {
|
||||
let uploadedFiles = files.filter((file) => file.status === 'upload successful');
|
||||
let uploadingFiles = files.filter((file) => file.status === 'submitting');
|
||||
|
||||
if (uploadedFiles.length > 0 && uploadingFiles.length === 0) {
|
||||
if (uploadingFiles.length === 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user