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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user