1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +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

@@ -272,9 +272,6 @@ class DirentListItem extends React.Component {
case 'Unmark as draft':
this.onUnmarkAsDraft();
break;
case 'List revisions':
this.openRevisionsPage();
break;
case 'Comment':
this.props.onDirentClick(this.props.dirent);
this.props.showDirentDetail('comments');
@@ -394,14 +391,6 @@ class DirentListItem extends React.Component {
});
}
openRevisionsPage = () => {
const repoID = this.props.repoID;
const filePath = this.getDirentPath(this.props.dirent);
const url = Utils.generateRevisionsURL(siteRoot, repoID, filePath);
if (!url) return;
window.open(url);
}
onHistory = () => {
let repoID = this.props.repoID;
let filePath = this.getDirentPath(this.props.dirent);