1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

Open the current image viewer (#3106)

This commit is contained in:
zxj96
2019-03-15 15:48:16 +08:00
committed by Daniel Pan
parent 2c09332b79
commit 9530e94fe1
3 changed files with 112 additions and 2 deletions

View File

@@ -362,7 +362,7 @@ class DirentListItem extends React.Component {
<td className="text-center">
<div className="dir-icon">
{dirent.encoded_thumbnail_src ?
<img src={`${siteRoot}${dirent.encoded_thumbnail_src}`} className="thumbnail" alt="" /> :
<img src={`${siteRoot}${dirent.encoded_thumbnail_src}`} className="thumbnail cursor-pointer" onClick={this.onItemClick} alt="" /> :
<img src={iconUrl} width="24" alt='' />
}
{dirent.is_locked && <img className="locked" src={mediaUrl + 'img/file-locked-32.png'} alt={gettext('locked')} title={dirent.lock_owner_name}/>}