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:
parent
8dd1a0efa8
commit
9323c3a758
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user