diff --git a/frontend/src/pages/org/collection-detail.ts b/frontend/src/pages/org/collection-detail.ts index 7c609833..30fbeccf 100644 --- a/frontend/src/pages/org/collection-detail.ts +++ b/frontend/src/pages/org/collection-detail.ts @@ -111,14 +111,19 @@ export class CollectionDetail extends LiteElement { html``} - (this.showShareInfo = true)} - > - - Share - + ${when( + this.isCrawler || (!this.isCrawler && this.collection?.isPublic), + () => html` + (this.showShareInfo = true)} + > + + Share + + ` + )} ${when(this.isCrawler, this.renderActions)}
@@ -180,20 +185,29 @@ export class CollectionDetail extends LiteElement { @sl-request-close=${() => (this.showShareInfo = false)} style="--width: 32rem;" > - ${this.collection?.isPublic - ? "" - : html`

- ${msg( - "Make this collection shareable to enable a public viewing link." - )} -

`} -
- - this.onTogglePublic((e.target as SlCheckbox).checked)} - >${msg("Collection is Shareable")} + ${ + this.collection?.isPublic + ? "" + : html`

+ ${msg( + "Make this collection shareable to enable a public viewing link." + )} +

` + } + ${when( + this.isCrawler, + () => + html` +
+ + this.onTogglePublic((e.target as SlCheckbox).checked)} + >${msg("Collection is Shareable")} +
+ ` + )}
${when(this.collection?.isPublic, this.renderShareInfo)}