1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

repair translate bug (#3156)

This commit is contained in:
杨顺强
2019-03-21 18:12:25 +08:00
committed by Daniel Pan
parent e793d61062
commit 4693b64888
5 changed files with 5 additions and 11 deletions

View File

@@ -155,9 +155,6 @@ class MutipleDirOperationToolbar extends React.Component {
const filePath = this.getDirentPath(dirent);
seafileAPI.lockfile(this.props.repoID, filePath).then((res) => {
if (res.data.is_locked) {
let message = gettext('Successfully locked %(name)s.');
message = message.replace('%(name)s', dirent.name);
toaster.success(message);
this.props.updateDirent(dirent, 'is_locked', true);
this.props.updateDirent(dirent, 'locked_by_me', true);
this.props.unSelectDirent();
@@ -169,9 +166,6 @@ class MutipleDirOperationToolbar extends React.Component {
const filePath = this.getDirentPath(dirent);
seafileAPI.unlockfile(this.props.repoID, filePath).then((res) => {
if (!res.data.is_locked) {
let message = gettext('Successfully unlocked %(name)s.');
message = message.replace('%(name)s', dirent.name);
toaster.success(message);
this.props.updateDirent(dirent, 'is_locked', false);
this.props.updateDirent(dirent, 'locked_by_me', false);
this.props.unSelectDirent();