mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 10:50:24 +00:00
delete rename successful tips
This commit is contained in:
@@ -773,9 +773,6 @@ class LibContentView extends React.Component {
|
|||||||
if (isDir) {
|
if (isDir) {
|
||||||
seafileAPI.renameDir(repoID, path, newName).then(() => {
|
seafileAPI.renameDir(repoID, path, newName).then(() => {
|
||||||
this.renameItemAjaxCallback(path, newName);
|
this.renameItemAjaxCallback(path, newName);
|
||||||
let name = Utils.getFileName(path);
|
|
||||||
var msg = gettext('Rename {name} successfully').replace('{name}', name);
|
|
||||||
toaster.success(msg);
|
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
let name = Utils.getFileName(path);
|
let name = Utils.getFileName(path);
|
||||||
var msg = gettext('Renaming {name} failed').replace('{name}', name);
|
var msg = gettext('Renaming {name} failed').replace('{name}', name);
|
||||||
@@ -784,9 +781,6 @@ class LibContentView extends React.Component {
|
|||||||
} else {
|
} else {
|
||||||
seafileAPI.renameFile(repoID, path, newName).then(() => {
|
seafileAPI.renameFile(repoID, path, newName).then(() => {
|
||||||
this.renameItemAjaxCallback(path, newName);
|
this.renameItemAjaxCallback(path, newName);
|
||||||
let name = Utils.getFileName(path);
|
|
||||||
var msg = gettext('Rename {name} successfully').replace('{name}', name);
|
|
||||||
toaster.success(msg);
|
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
let name = Utils.getFileName(path);
|
let name = Utils.getFileName(path);
|
||||||
var msg = gettext('Renaming {name} failed').replace('{name}', name);
|
var msg = gettext('Renaming {name} failed').replace('{name}', name);
|
||||||
|
Reference in New Issue
Block a user