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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user