e-picsa / picsa-apps

Monorepo for building tools to support E-PICSA Apps
https://picsa.app
GNU General Public License v3.0
5 stars 1 forks source link

feat(resources-tool): download all and size #254

Closed chrismclarke closed 2 months ago

chrismclarke commented 3 months ago

Is your feature request related to a problem? Please describe. File resources that appear on a page must be downloaded individually. It would be useful to include a button that can download all

Describe the solution you'd like Create a resource-download-multiple component that takes an input of resources, displays the total number of resources and total size of resources, and has a button to download all. E.g. (rough mockup, use material styling)

image

If possible it would also be good to update the individual download component to show file size

Image

Additional context See existing code to download single resources at apps\picsa-tools\resources-tool\src\app\components\resource-download\resource-download.component.ts It might be possible to extend the existing code, or might be easier to create a new component