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

delete rename successful tips

This commit is contained in:
zxj96
2019-06-03 14:22:55 +08:00
parent 38aed49542
commit b772030c71

View File

@@ -773,9 +773,6 @@ class LibContentView extends React.Component {
if (isDir) {
seafileAPI.renameDir(repoID, path, newName).then(() => {
this.renameItemAjaxCallback(path, newName);
let name = Utils.getFileName(path);
var msg = gettext('Rename {name} successfully').replace('{name}', name);
toaster.success(msg);
}).catch(() => {
let name = Utils.getFileName(path);
var msg = gettext('Renaming {name} failed').replace('{name}', name);
@@ -784,9 +781,6 @@ class LibContentView extends React.Component {
} else {
seafileAPI.renameFile(repoID, path, newName).then(() => {
this.renameItemAjaxCallback(path, newName);
let name = Utils.getFileName(path);
var msg = gettext('Rename {name} successfully').replace('{name}', name);
toaster.success(msg);
}).catch(() => {
let name = Utils.getFileName(path);
var msg = gettext('Renaming {name} failed').replace('{name}', name);