1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +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

@@ -219,7 +219,7 @@ class CommentItem extends React.Component {
<div className="seafile-edit-comment">
<textarea className="edit-comment-input" value={this.state.newComment} onChange={this.handleCommentChange} clos="100" rows="3" warp="virtual"></textarea>
<Button className="comment-btn" color="success" size="sm" onClick={this.updateComment} id={item.id}>{gettext('Update')}</Button>{' '}
<Button className="comment-btn" color="secondary" size="sm" onClick={this.toggleEditComment}> {gettext('Cancle')}</Button>
<Button className="comment-btn" color="secondary" size="sm" onClick={this.toggleEditComment}> {gettext('Cancel')}</Button>
</div>
</li>
);

View File

@@ -306,7 +306,7 @@ class CommentItem extends React.Component {
<div className="seafile-edit-comment">
<textarea className="edit-comment-input" value={this.state.newComment} onChange={this.handleCommentChange} clos="100" rows="3" warp="virtual"></textarea>
<Button className="comment-btn" color="success" size="sm" onClick={this.updateComment} id={item.id}>{gettext('Update')}</Button>{' '}
<Button className="comment-btn" color="secondary" size="sm" onClick={this.toggleEditComment}> {gettext('Cancle')}</Button>
<Button className="comment-btn" color="secondary" size="sm" onClick={this.toggleEditComment}> {gettext('Cancel')}</Button>
</div>
</li>
);

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();

View File

@@ -97,7 +97,7 @@ class OrgLibraries extends Component {
<tr>
<th width="4%"></th>
<th width="31%">{gettext('Name')}</th>
<th width="26%">{gettext('ID')}</th>
<th width="26%">ID</th>
<th width="24%">{gettext('Owner')}</th>
<th width="15%" className="text-center">{gettext('Operations')}</th>
</tr>

View File

@@ -25,7 +25,7 @@ class Table extends Component {
<thead>
<tr>
<th width="16%">{gettext('Library')}</th>
<th width="30%">{gettext('ID')}</th>
<th width="30%">ID</th>
<th width="30%">{gettext('Path')}</th>
<th width="12%">{gettext('Label')}</th>
<th width="12%">{gettext('Suggestion')}</th>