u
This commit is contained in:
@@ -16,7 +16,6 @@ import CodeRoundedIcon from '@mui/icons-material/CodeRounded';
|
||||
import DescriptionRoundedIcon from '@mui/icons-material/DescriptionRounded';
|
||||
import InsertDriveFileRoundedIcon from '@mui/icons-material/InsertDriveFileRounded';
|
||||
import InsertPhotoRoundedIcon from '@mui/icons-material/InsertPhotoRounded';
|
||||
import ErrorOutlineRoundedIcon from '@mui/icons-material/ErrorOutlineRounded';
|
||||
import OpenInNewRoundedIcon from '@mui/icons-material/OpenInNewRounded';
|
||||
import DownloadRoundedIcon from '@mui/icons-material/DownloadRounded';
|
||||
import { enqueueSnackbar } from 'notistack';
|
||||
@@ -368,7 +367,6 @@ export class VfsAttachmentLink extends PureComponent {
|
||||
const { name, path, type, label, children, isUser = false } = this.props;
|
||||
const { isDownloading, isOpening, notFound } = this.state;
|
||||
const downloadName = name || (path ? path.split('/').pop() : 'datei');
|
||||
const displayName = label || children || name || downloadName;
|
||||
const effectiveType = type || inferMimeType(downloadName);
|
||||
const vfsUrl = resolveVfsUrl(path);
|
||||
const canView = isBrowserViewable(downloadName, effectiveType);
|
||||
|
||||
Reference in New Issue
Block a user