1
0
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:
杨顺强
2019-01-05 17:52:26 +08:00
committed by Daniel Pan
parent 7d30632977
commit 77e557820e
3 changed files with 14 additions and 8 deletions

View File

@@ -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 = () => {