1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

Copyitems into the current directory

This commit is contained in:
zxj96
2019-05-31 12:13:24 +08:00
parent e07aad7b54
commit 864f8778f9
2 changed files with 9 additions and 6 deletions

View File

@@ -576,6 +576,9 @@ class LibContentView extends React.Component {
this.copyTreeNode(direntPath, destDirentPath, destRepo, names[index]);
});
}
if (destDirentPath === this.state.path) {
this.loadDirentList(this.state.path);
}
let message = Utils.getCopySuccessfulMessage(dirNames);
toaster.success(message);
}).catch(() => {
@@ -872,6 +875,9 @@ class LibContentView extends React.Component {
if (this.state.currentMode === 'column') {
this.copyTreeNode(direntPath, copyToDirentPath, destRepo, nodeName);
}
if (copyToDirentPath === nodeParentPath) {
this.loadDirentList(this.state.path);
}
let message = gettext('Successfully copied %(name)s.');
message = message.replace('%(name)s', dirName);
toaster.success(message);