1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 04:48:03 +00:00
This commit is contained in:
欢乐马
2023-07-17 16:18:14 +08:00
committed by GitHub
parent 960c939a28
commit d6c4b858f6
5 changed files with 23 additions and 23 deletions

View File

@@ -150,11 +150,11 @@ class DirentGridView extends React.Component{
case 'Lock':
this.onLockItem(currentObject);
break;
case 'Mask as draft':
this.onMaskAsDraft(currentObject);
case 'Mark as draft':
this.onMarkAsDraft(currentObject);
break;
case 'Unmask as draft':
this.onUnmaskAsDraft(currentObject);
case 'Unmark as draft':
this.onUnmarkAsDraft(currentObject);
break;
case 'List revisions':
this.openRevisionsPage(currentObject);
@@ -271,7 +271,7 @@ class DirentGridView extends React.Component{
});
}
onMaskAsDraft = (currentObject) => {
onMarkAsDraft = (currentObject) => {
let repoID = this.props.repoID;
let filePath = this.getDirentPath(currentObject);
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 filePath = this.getDirentPath(currentObject);
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {

View File

@@ -264,11 +264,11 @@ class DirentListItem extends React.Component {
case 'Lock':
this.onLockItem();
break;
case 'Mask as draft':
this.onMaskAsDraft();
case 'Mark as draft':
this.onMarkAsDraft();
break;
case 'Unmask as draft':
this.onUnmaskAsDraft();
case 'Unmark as draft':
this.onUnmarkAsDraft();
break;
case 'List revisions':
this.openRevisionsPage();
@@ -362,7 +362,7 @@ class DirentListItem extends React.Component {
});
}
onMaskAsDraft = () => {
onMarkAsDraft = () => {
let repoID = this.props.repoID;
let filePath = this.getDirentPath(this.props.dirent);
seafileAPI.sdocMaskAsDraft(repoID, filePath).then((res) => {
@@ -373,7 +373,7 @@ class DirentListItem extends React.Component {
});
}
onUnmaskAsDraft = () => {
onUnmarkAsDraft = () => {
let repoID = this.props.repoID;
let filePath = this.getDirentPath(this.props.dirent);
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {

View File

@@ -121,7 +121,7 @@ class MultipleDirOperationToolbar extends React.Component {
});
}
onMaskAsDraft = (dirent) => {
onMarkAsDraft = (dirent) => {
let repoID = this.props.repoID;
let filePath = this.getDirentPath(dirent);
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 filePath = this.getDirentPath(dirent);
seafileAPI.sdocUnmaskAsDraft(repoID, filePath).then((res) => {
@@ -205,11 +205,11 @@ class MultipleDirOperationToolbar extends React.Component {
case 'Unlock':
this.unlockFile(dirent);
break;
case 'Mask as draft':
this.onMaskAsDraft(dirent);
case 'Mark as draft':
this.onMarkAsDraft(dirent);
break;
case 'Unmask as draft':
this.onUnmaskAsDraft(dirent);
case 'Unmark as draft':
this.onUnmarkAsDraft(dirent);
break;
case 'Comment':
this.onCommentItem();