mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 22:54:11 +00:00
Dir view bug repair (#2770)
* history back bug repair * rename uploadedFolders to notifiedFolders * encode repoName
This commit is contained in:
@@ -41,7 +41,7 @@ class FileUploader extends React.Component {
|
||||
currentResumableFile: null,
|
||||
};
|
||||
|
||||
this.uploadedFolders = [];
|
||||
this.notifiedFolders = [];
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
@@ -226,9 +226,9 @@ class FileUploader extends React.Component {
|
||||
};
|
||||
|
||||
// update folders cache
|
||||
let isExist = this.uploadedFolders.some(item => {return item.name === dirent.name;});
|
||||
let isExist = this.notifiedFolders.some(item => {return item.name === dirent.name;});
|
||||
if (!isExist) {
|
||||
this.uploadedFolders.push(dirent);
|
||||
this.notifiedFolders.push(dirent);
|
||||
this.props.onFileUploadSuccess(dirent);
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ class FileUploader extends React.Component {
|
||||
}
|
||||
|
||||
onComplete = () => {
|
||||
this.uploadedFolders = [];
|
||||
this.notifiedFolders = [];
|
||||
}
|
||||
|
||||
onPause = () => {
|
||||
|
Reference in New Issue
Block a user