mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
fix spell (#5550)
This commit is contained in:
@@ -150,11 +150,11 @@ class DirentGridView extends React.Component{
|
|||||||
case 'Lock':
|
case 'Lock':
|
||||||
this.onLockItem(currentObject);
|
this.onLockItem(currentObject);
|
||||||
break;
|
break;
|
||||||
case 'Mask as draft':
|
case 'Mark as draft':
|
||||||
this.onMaskAsDraft(currentObject);
|
this.onMarkAsDraft(currentObject);
|
||||||
break;
|
break;
|
||||||
case 'Unmask as draft':
|
case 'Unmark as draft':
|
||||||
this.onUnmaskAsDraft(currentObject);
|
this.onUnmarkAsDraft(currentObject);
|
||||||
break;
|
break;
|
||||||
case 'List revisions':
|
case 'List revisions':
|
||||||
this.openRevisionsPage(currentObject);
|
this.openRevisionsPage(currentObject);
|
||||||
@@ -271,7 +271,7 @@ class DirentGridView extends React.Component{
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onMaskAsDraft = (currentObject) => {
|
onMarkAsDraft = (currentObject) => {
|
||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
let filePath = this.getDirentPath(currentObject);
|
let filePath = this.getDirentPath(currentObject);
|
||||||
seafileAPI.sdocMaskAsDraft(repoID, filePath).then((res) => {
|
seafileAPI.sdocMaskAsDraft(repoID, filePath).then((res) => {
|
||||||
@@ -282,7 +282,7 @@ class DirentGridView extends React.Component{
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onUnmaskAsDraft = (currentObject) => {
|
onUnmarkAsDraft = (currentObject) => {
|
||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
let filePath = this.getDirentPath(currentObject);
|
let filePath = this.getDirentPath(currentObject);
|
||||||
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {
|
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {
|
||||||
|
@@ -264,11 +264,11 @@ class DirentListItem extends React.Component {
|
|||||||
case 'Lock':
|
case 'Lock':
|
||||||
this.onLockItem();
|
this.onLockItem();
|
||||||
break;
|
break;
|
||||||
case 'Mask as draft':
|
case 'Mark as draft':
|
||||||
this.onMaskAsDraft();
|
this.onMarkAsDraft();
|
||||||
break;
|
break;
|
||||||
case 'Unmask as draft':
|
case 'Unmark as draft':
|
||||||
this.onUnmaskAsDraft();
|
this.onUnmarkAsDraft();
|
||||||
break;
|
break;
|
||||||
case 'List revisions':
|
case 'List revisions':
|
||||||
this.openRevisionsPage();
|
this.openRevisionsPage();
|
||||||
@@ -362,7 +362,7 @@ class DirentListItem extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onMaskAsDraft = () => {
|
onMarkAsDraft = () => {
|
||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
let filePath = this.getDirentPath(this.props.dirent);
|
let filePath = this.getDirentPath(this.props.dirent);
|
||||||
seafileAPI.sdocMaskAsDraft(repoID, filePath).then((res) => {
|
seafileAPI.sdocMaskAsDraft(repoID, filePath).then((res) => {
|
||||||
@@ -373,7 +373,7 @@ class DirentListItem extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onUnmaskAsDraft = () => {
|
onUnmarkAsDraft = () => {
|
||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
let filePath = this.getDirentPath(this.props.dirent);
|
let filePath = this.getDirentPath(this.props.dirent);
|
||||||
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {
|
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {
|
||||||
|
@@ -121,7 +121,7 @@ class MultipleDirOperationToolbar extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onMaskAsDraft = (dirent) => {
|
onMarkAsDraft = (dirent) => {
|
||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
let filePath = this.getDirentPath(dirent);
|
let filePath = this.getDirentPath(dirent);
|
||||||
seafileAPI.sdocMaskAsDraft(repoID, filePath).then((res) => {
|
seafileAPI.sdocMaskAsDraft(repoID, filePath).then((res) => {
|
||||||
@@ -132,7 +132,7 @@ class MultipleDirOperationToolbar extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onUnmaskAsDraft = (dirent) => {
|
onUnmarkAsDraft = (dirent) => {
|
||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
let filePath = this.getDirentPath(dirent);
|
let filePath = this.getDirentPath(dirent);
|
||||||
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {
|
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {
|
||||||
@@ -205,11 +205,11 @@ class MultipleDirOperationToolbar extends React.Component {
|
|||||||
case 'Unlock':
|
case 'Unlock':
|
||||||
this.unlockFile(dirent);
|
this.unlockFile(dirent);
|
||||||
break;
|
break;
|
||||||
case 'Mask as draft':
|
case 'Mark as draft':
|
||||||
this.onMaskAsDraft(dirent);
|
this.onMarkAsDraft(dirent);
|
||||||
break;
|
break;
|
||||||
case 'Unmask as draft':
|
case 'Unmark as draft':
|
||||||
this.onUnmaskAsDraft(dirent);
|
this.onUnmarkAsDraft(dirent);
|
||||||
break;
|
break;
|
||||||
case 'Comment':
|
case 'Comment':
|
||||||
this.onCommentItem();
|
this.onCommentItem();
|
||||||
|
@@ -16,8 +16,8 @@ const TextTranslation = {
|
|||||||
'OPEN_VIA_CLIENT' : {key : 'Open via Client', value : gettext('Open via Client')},
|
'OPEN_VIA_CLIENT' : {key : 'Open via Client', value : gettext('Open via Client')},
|
||||||
'LOCK' : {key : 'Lock', value : gettext('Lock')},
|
'LOCK' : {key : 'Lock', value : gettext('Lock')},
|
||||||
'UNLOCK' : {key : 'Unlock', value : gettext('Unlock')},
|
'UNLOCK' : {key : 'Unlock', value : gettext('Unlock')},
|
||||||
'MASK_AS_DRAFT' : {key : 'Mask as draft', value : gettext('Mark as draft')},
|
'MARK_AS_DRAFT' : {key : 'Mark as draft', value : gettext('Mark as draft')},
|
||||||
'UNMASK_AS_DRAFT' : {key : 'Unmask as draft', value : gettext('Unmark as draft')},
|
'UNMARK_AS_DRAFT' : {key : 'Unmark as draft', value : gettext('Unmark as draft')},
|
||||||
'LIST_REVISIONS': { key: 'List revisions', value: gettext('List revisions') },
|
'LIST_REVISIONS': { key: 'List revisions', value: gettext('List revisions') },
|
||||||
'COMMENT' : {key : 'Comment', value : gettext('Comment')},
|
'COMMENT' : {key : 'Comment', value : gettext('Comment')},
|
||||||
'HISTORY' : {key : 'History', value : gettext('History')},
|
'HISTORY' : {key : 'History', value : gettext('History')},
|
||||||
|
@@ -526,7 +526,7 @@ export const Utils = {
|
|||||||
|
|
||||||
getFileOperationList: function(isRepoOwner, currentRepoInfo, dirent, isContextmenu) {
|
getFileOperationList: function(isRepoOwner, currentRepoInfo, dirent, isContextmenu) {
|
||||||
let list = [];
|
let list = [];
|
||||||
const { SHARE, DOWNLOAD, DELETE, RENAME, MOVE, COPY, TAGS, UNLOCK, LOCK, MASK_AS_DRAFT, UNMASK_AS_DRAFT,
|
const { SHARE, DOWNLOAD, DELETE, RENAME, MOVE, COPY, TAGS, UNLOCK, LOCK, MARK_AS_DRAFT, UNMARK_AS_DRAFT,
|
||||||
LIST_REVISIONS, COMMENT, HISTORY, ACCESS_LOG, OPEN_VIA_CLIENT, ONLYOFFICE_CONVERT } = TextTranslation;
|
LIST_REVISIONS, COMMENT, HISTORY, ACCESS_LOG, OPEN_VIA_CLIENT, ONLYOFFICE_CONVERT } = TextTranslation;
|
||||||
const permission = dirent.permission;
|
const permission = dirent.permission;
|
||||||
const { isCustomPermission, customPermission } = Utils.getUserPermission(permission);
|
const { isCustomPermission, customPermission } = Utils.getUserPermission(permission);
|
||||||
@@ -596,9 +596,9 @@ export const Utils = {
|
|||||||
list.push('Divider');
|
list.push('Divider');
|
||||||
if (Utils.isSdocFile(dirent.name)) {
|
if (Utils.isSdocFile(dirent.name)) {
|
||||||
if (dirent.is_sdoc_draft) {
|
if (dirent.is_sdoc_draft) {
|
||||||
list.push(UNMASK_AS_DRAFT);
|
list.push(UNMARK_AS_DRAFT);
|
||||||
} else {
|
} else {
|
||||||
list.push(MASK_AS_DRAFT);
|
list.push(MARK_AS_DRAFT);
|
||||||
}
|
}
|
||||||
list.push(LIST_REVISIONS);
|
list.push(LIST_REVISIONS);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user