Skip to content

Preview Plugin - Unable to download a selection of Files #3158

@samuel-kerrien

Description

@samuel-kerrien

TL;DR

  1. Disable Download button if archives/write permissions is not available on the target project.
  2. Add tooltip when button is disabled with the same message
  3. Use the following message on the tooltip (to remove the cart reference - such that it can be reused for both the cart and the data download): "You don’t have the required permissions to create an archive for some of the selected resources. Please contact your project administrator to request to be granted the required archives/write permission."

Issue 1 - unable to download one or several files using the 'Download Selected Files'
Using the Preview plugin, when selecting one or several file and then clicking on the button 'Download Selected Files', an error occur and the download isn't started.

Screenshot 2022-03-16 at 17.25.44.png

Expected behavior
The selected files should be downloaded as an archive.

Issue 2 - info message mentions the data cart
One additional issue, the information message when the button is disabled looks like it was copied from the data cart, see capture below (taken on Sandbox).

Screenshot 2022-03-17 at 18.18.18.png

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions