- ${when(this.collection?.thumbnail, (t) => thumbnail(t))}
+
+
+ ${msg("Page Thumbnail")}
+
+ ${when(
+ this.collection?.thumbnail,
+ (t) => thumbnail(t),
+ () => thumbnail(),
+ )}
+
+ ${msg("Placeholder")}
+
${thumbnail(Thumbnail.Cyan)} ${thumbnail(Thumbnail.Green)}
${thumbnail(Thumbnail.Yellow)} ${thumbnail(Thumbnail.Orange)}
diff --git a/frontend/src/features/collections/edit-dialog/sharing-section.ts b/frontend/src/features/collections/edit-dialog/sharing-section.ts
index ebca034912..7d29f02d31 100644
--- a/frontend/src/features/collections/edit-dialog/sharing-section.ts
+++ b/frontend/src/features/collections/edit-dialog/sharing-section.ts
@@ -5,26 +5,17 @@ import type {
SlSelectEvent,
SlSwitch,
} from "@shoelace-style/shoelace";
-import { html, nothing, type PropertyValues } from "lit";
+import { html, type PropertyValues } from "lit";
import { customElement, property } from "lit/decorators.js";
import { ifDefined } from "lit/directives/if-defined.js";
import { when } from "lit/directives/when.js";
-import {
- CollectionThumbnail,
- DEFAULT_THUMBNAIL_VARIANT,
- Thumbnail,
-} from "../collection-thumbnail";
import { type SelectCollectionAccess } from "../select-collection-access";
import { BtrixElement } from "@/classes/BtrixElement";
import { viewStateContext, type ViewStateContext } from "@/context/view-state";
import { RouteNamespace } from "@/routes";
-import {
- CollectionAccess,
- type Collection,
- type PublicCollection,
-} from "@/types/collection";
+import { CollectionAccess, type Collection } from "@/types/collection";
@customElement("btrix-collection-share-settings")
@localized()
@@ -39,17 +30,11 @@ export class CollectionShareSettings extends BtrixElement {
public access = this.collection?.access;
@property({ type: Boolean })
public allowPublicDownload = this.collection?.allowPublicDownload;
- @property({ type: String })
- public defaultThumbnailName?: `${Thumbnail}` | null = this.collection
- ?.defaultThumbnailName as `${Thumbnail}` | null;
protected willUpdate(changedProperties: PropertyValues
): void {
if (changedProperties.has("collection")) {
this.access = this.collection?.access;
this.allowPublicDownload = this.collection?.allowPublicDownload;
- this.defaultThumbnailName = this.collection?.defaultThumbnailName as
- | `${Thumbnail}`
- | null;
}
}
@@ -104,19 +89,7 @@ export class CollectionShareSettings extends BtrixElement {
this.collection?.access != CollectionAccess.Private,
() => html`${this.renderShareLink()}
`,
)}
-
-
- ${msg("Thumbnail")}
-
-
-
-
- ${this.renderThumbnails()}
-
+