1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

View repo content in list mode (#2579)

This commit is contained in:
杨顺强
2018-11-29 17:55:14 +08:00
committed by Daniel Pan
parent 4f38e393d5
commit c00d4f30bd
23 changed files with 773 additions and 107 deletions

View File

@@ -26,7 +26,7 @@ const propTypes = {
fileTypeErrorCallback: PropTypes.func,
dragAndDrop: PropTypes.bool.isRequired,
path: PropTypes.string.isRequired,
onFileSuccess: PropTypes.func.isRequired,
onFileUploadSuccess: PropTypes.func.isRequired,
};
class FileUploader extends React.Component {
@@ -97,7 +97,7 @@ class FileUploader extends React.Component {
this.resumable.on('fileAdded', this.onFileAdded);
this.resumable.on('filesAddedComplete', this.filesAddedComplete);
this.resumable.on('fileProgress', this.onFileProgress);
this.resumable.on('fileSuccess', this.onFileSuccess);
this.resumable.on('fileSuccess', this.onFileUploadSuccess);
this.resumable.on('progress', this.onProgress);
this.resumable.on('complete', this.onComplete);
this.resumable.on('pause', this.onPause);
@@ -205,7 +205,7 @@ class FileUploader extends React.Component {
this.setState({uploadFileList: uploadFileList});
}
onFileSuccess = (file) => {
onFileUploadSuccess = (file) => {
// todos, update uploadList or updateList;
}