Org dashboard: update collection grid empty text state when view is set to "all" (#2402)

Tested locally.

cc @SuaYoo
This commit is contained in:
Emma Segal-Grossman 2025-02-17 21:05:48 -05:00 committed by GitHub
parent d23bca1f73
commit f1dc790ab4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -64,7 +64,9 @@ export class CollectionsGrid extends BtrixElement {
return html`
<div class="flex flex-col items-center justify-center gap-3 px-3 py-10">
<p class="text-base text-neutral-500">
${msg("No public collections yet.")}
<slot name="empty-text">
${msg("No public collections yet.")}
</slot>
</p>
<slot name="empty-actions"></slot>
</div>

View File

@ -462,6 +462,11 @@ export class Dashboard extends BtrixElement {
}}
>
${this.renderNoPublicCollections()}
<span slot="empty-text"
>${this.collectionsView === CollectionGridView.Public
? msg("No public collections yet.")
: msg("No collections yet.")}</span
>
${this.collections.value &&
this.collections.value.total > this.collections.value.items.length
? html`