Always previewing file that can be downloaded.

This commit is contained in:
Roland 2023-08-04 11:32:47 -06:00
parent 939b10a1bc
commit d0d315cd67
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 44 additions and 46 deletions

View file

@ -140,6 +140,7 @@ function getSTLModal(previewFile) {
}
function getGenericModal(previewFile) {
// No special handler for this file type, just open it.
const path = previewFile.primary_path ?? previewFile.path;
const name = path.replace(/^.*[\\\/]/, '');
@ -214,7 +215,7 @@ export function FilePreviewProvider({children}) {
<pre>{path}</pre>
</ModalContent>
: null;
console.log('path', path);
console.log('Previewing', path);
setPreviewModal(<Modal closeIcon
size='fullscreen'