1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00
This commit is contained in:
Michael An
2019-02-27 17:34:39 +08:00
committed by Daniel Pan
parent abd5718931
commit e28f6361d0
5 changed files with 52 additions and 1 deletions

View File

@@ -49,6 +49,13 @@ class DirColumnFile extends React.Component {
});
}
onOpenFile = (e) => {
e.preventDefault();
let { path, repoID } = this.props;
let newUrl = siteRoot + 'lib/' + repoID + '/file' + Utils.encodePath(path);
window.open(newUrl, '_blank');
}
goDraftPage = (e) => {
e.preventDefault();
this.props.goDraftPage();
@@ -75,6 +82,9 @@ class DirColumnFile extends React.Component {
onLinkClick={this.props.onLinkClick}
>
<Fragment>
<span className='wiki-open-file position-fixed' onClick={this.onOpenFile}>
<i className="fas fa-expand-arrows-alt"></i>
</span>
{this.props.reviewStatus === 'open' &&
<div className='seafile-btn-view-review text-center'>
<div className='tag tag-green'>