diff --git a/frontend/src/features/collections/collection-thumbnail.ts b/frontend/src/features/collections/collection-thumbnail.ts index daebfbc3..05971ca3 100644 --- a/frontend/src/features/collections/collection-thumbnail.ts +++ b/frontend/src/features/collections/collection-thumbnail.ts @@ -1,4 +1,4 @@ -import { localized } from "@lit/localize"; +import { localized, msg, str } from "@lit/localize"; import { html } from "lit"; import { customElement, property } from "lit/decorators.js"; @@ -38,10 +38,16 @@ export class CollectionThumbnail extends BtrixElement { @property({ type: String }) src?: string; + @property({ type: String }) + collectionName?: string; + render() { return html` ${this.collectionName `; diff --git a/frontend/src/features/collections/collections-grid.ts b/frontend/src/features/collections/collections-grid.ts index 7675e32f..989ebce0 100644 --- a/frontend/src/features/collections/collections-grid.ts +++ b/frontend/src/features/collections/collections-grid.ts @@ -101,6 +101,7 @@ export class CollectionsGrid extends BtrixElement { ([name]) => name === collection.defaultThumbnailName, )?.[1].path || collection.thumbnail?.path, )} + collectionName=${collection.name} > ${this.renderDateBadge(collection)}