mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 03:18:23 +00:00
rm ENABLE_THUMBNAIL
This commit is contained in:
@@ -55,7 +55,7 @@ class FileContent extends React.Component {
|
||||
// only for 'file view'. not for 'history/trash file view'
|
||||
let thumbnailURL = '';
|
||||
const fileExtList = ['tif', 'tiff', 'psd'];
|
||||
if (this.props.canUseThumbnail && !repoEncrypted && fileExtList.includes(fileExt)) {
|
||||
if (!repoEncrypted && fileExtList.includes(fileExt)) {
|
||||
thumbnailURL = `${siteRoot}thumbnail/${repoID}/${thumbnailSizeForOriginal}${Utils.encodePath(filePath)}`;
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,7 @@ class InnerFileView extends React.Component {
|
||||
let content;
|
||||
switch (fileType) {
|
||||
case 'Image':
|
||||
content = <Image tip={<FileViewTip />} canUseThumbnail={true} />;
|
||||
content = <Image tip={<FileViewTip />} />;
|
||||
break;
|
||||
case 'XMind':
|
||||
content = <Image tip={<FileViewTip />} />;
|
||||
|
Reference in New Issue
Block a user