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

image review (#3282)

This commit is contained in:
Michael An 2019-04-16 14:56:12 +08:00 committed by Daniel Pan
parent 8dd1a0efa8
commit 9323c3a758

View File

@ -119,6 +119,11 @@ class DirentDetail extends React.Component {
let smallIconUrl = dirent ? Utils.getDirentIcon(dirent) : Utils.getDirentIcon(folderDirent);
let bigIconUrl = dirent ? Utils.getDirentIcon(dirent, true) : Utils.getDirentIcon(folderDirent, true);
const isImg = Utils.imageCheck(dirent.name);
if (isImg) {
bigIconUrl = '/' + dirent.encoded_thumbnail_src;
smallIconUrl = '/' + dirent.encoded_thumbnail_src;
}
let direntName = dirent ? dirent.name : folderDirent.name;
return (