mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 19:36:20 -05:00
Always previewing file that can be downloaded.
This commit is contained in:
parent
939b10a1bc
commit
d0d315cd67
2 changed files with 44 additions and 46 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue