inveniosoftware / invenio-app-rdm

Turn-key research data management platform.
https://inveniordm.docs.cern.ch
MIT License
100 stars 144 forks source link

deposit-ui: preview checkbox shouldn't be displayed for files that cannot be previewed #2675

Open slint opened 3 months ago

slint commented 3 months ago

Currently we display the preview checkbox for all files, no matter if we can preview them or not. We should integrate the previewer rules into the either the REST API, or directly in the deposit form client to be able to hide/disable the checkboxes.

See for example below, .html files are not previewable at the moment (for security reasons):

Screenshot 2024-05-24 at 13 42 35
github-actions[bot] commented 1 month ago

This issue was automatically marked as stale.