Show download button on public collection pages regardless of collection access (#2442)

Reported here
https://discord.com/channels/895426029194207262/1011678975636013066/1345095899008860224

Public-facing collections (whether public or unlisted) should have the
download button visible if "show download button" is enabled.
This commit is contained in:
Emma Segal-Grossman 2025-03-01 01:07:38 -05:00 committed by GitHub
parent cb52da66dc
commit 53b531ce3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,9 +97,7 @@ export class ShareCollection extends BtrixElement {
</sl-icon-button>
</sl-tooltip>
${when(this.orgSlug && this.collection, (collection) =>
this.context === "public" &&
collection.access === CollectionAccess.Public &&
collection.allowPublicDownload
this.context === "public" && collection.allowPublicDownload
? html`
<sl-tooltip
content=${msg("Download Collection: ") +