1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

add access log menu item (#3550)

This commit is contained in:
杨顺强
2019-05-28 10:43:17 +08:00
committed by Daniel Pan
parent 025924e5c2
commit 28495b9f62
3 changed files with 25 additions and 6 deletions

View File

@@ -298,9 +298,11 @@ class DirentListItem extends React.Component {
let url = URLDecorator.getUrl({type: 'file_revisions', repoID: repoID, filePath: filePath});
location.href = url;
}
onAccessLog = () => {
let filePath = this.getDirentPath(this.props.dirent);
let path = siteRoot + 'repo/file-access/' + this.props.repoID + '/?p=' + encodeURIComponent(filePath) ;
window.open(path);
}
onOpenViaClient = () => {