1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 20:01:10 +00:00

[misc] updated text, fixup, cleaned up code & files for 'list sdoc revisions'

This commit is contained in:
llj
2023-08-25 18:04:38 +08:00
parent 6586660701
commit 1b53fe6265
11 changed files with 6 additions and 154 deletions

View File

@@ -152,9 +152,6 @@ class DirentGridView extends React.Component {
case 'Unmark as draft':
this.onUnmarkAsDraft(currentObject);
break;
case 'List revisions':
this.openRevisionsPage(currentObject);
break;
case 'Comment':
this.onCommentItem();
break;
@@ -292,14 +289,6 @@ class DirentGridView extends React.Component {
});
}
openRevisionsPage = (currentObject) => {
const repoID = this.props.repoID;
const filePath = this.getDirentPath(currentObject);
const url = Utils.generateRevisionsURL(siteRoot, repoID, filePath);
if (!url) return;
window.open(url);
}
onCommentItem = () => {
this.props.showDirentDetail('comments');
}