-
- {this.props.files.map((file, i) => {
+
+ {files.map((file, i) => {
if(file.status !== 'deleted' && file.status !== 'canceled' && file.size !== -1) {
return (
+ handleDeleteFile={handleDeleteFile}
+ handleCancelFile={handleCancelFile}
+ handlePauseFile={handlePauseFile}
+ handleResumeFile={handleResumeFile}
+ areAssetsDownloadable={areAssetsDownloadable}
+ areAssetsEditable={areAssetsEditable}/>
);
} else {
return null;
}
})}
-
+
);
} else {
diff --git a/js/components/ascribe_uploader/file_drag_and_drop_preview_progress.js b/js/components/ascribe_uploader/file_drag_and_drop_preview_progress.js
index 0974142a..ef6d0e12 100644
--- a/js/components/ascribe_uploader/file_drag_and_drop_preview_progress.js
+++ b/js/components/ascribe_uploader/file_drag_and_drop_preview_progress.js
@@ -22,23 +22,28 @@ let FileDragAndDropPreviewProgress = React.createClass({
overallProgress += files[i].size / sizeOfAllFiles * files[i].progress;
}
-
return overallProgress;
},
render() {
let overallProgress = this.calcOverallProgress();
+ let style = {
+ visibility: 'hidden'
+ };
if(overallProgress !== 0) {
- return (
-
- );
- } else {
- return null;
+ style.visibility = 'visible';
}
+
+ console.log(overallProgress, style);
+
+ return (
+
+ );
}
});
diff --git a/sass/ascribe_uploader.scss b/sass/ascribe_uploader.scss
index e3b5d1c1..df08a27e 100644
--- a/sass/ascribe_uploader.scss
+++ b/sass/ascribe_uploader.scss
@@ -10,7 +10,6 @@
cursor: default !important;
- padding: 1.5em 0 1.5em 0;
}
.inactive-dropzone {
@@ -30,6 +29,7 @@
}
.file-drag-and-drop-preview-iterator {
+ margin: 2.5em 0 0 0;
text-align: right;
> div:first-child {
@@ -37,6 +37,18 @@
}
}
+.file-drag-and-drop-preview-iterator-spacing {
+ margin-bottom: 1em;
+}
+
+.file-drag-and-drop-dialog {
+ margin: 1.5em 0 1.5em 0;
+}
+
+.file-drag-and-drop-hashing-dialog {
+ margin: 1.5em 0 0 0;
+}
+
.file-drag-and-drop .file-drag-and-drop-dialog > p:first-child {
font-size: 1.5em !important;