mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 15:54:39 +00:00
@@ -327,6 +327,7 @@ class FileUploader extends React.Component {
|
||||
let isExist = this.notifiedFolders.some(item => {return item.name === dirent.name;});
|
||||
if (!isExist) {
|
||||
this.notifiedFolders.push(dirent);
|
||||
console.log('test dev: ', JSON.stringify(dirent));
|
||||
this.props.onFileUploadSuccess(dirent);
|
||||
}
|
||||
|
||||
|
@@ -1715,6 +1715,7 @@ class LibContentView extends React.Component {
|
||||
|
||||
onFileUploadSuccess = (direntObject) => {
|
||||
const isExist = this.state.direntList.some(item => item.name === direntObject.name && item.type === direntObject.type);
|
||||
console.log('dev test: ', isExist);
|
||||
if (isExist) {
|
||||
const dirent = this.state.direntList.find(dirent => dirent.name === direntObject.name && dirent.type === direntObject.type);
|
||||
const mtime = dayjs.unix(direntObject.mtime).fromNow();
|
||||
|
Reference in New Issue
Block a user