Org dashboard: update collection grid empty text state when view is set to "all" (#2402)
Tested locally. cc @SuaYoo
This commit is contained in:
parent
d23bca1f73
commit
f1dc790ab4
@ -64,7 +64,9 @@ export class CollectionsGrid extends BtrixElement {
|
|||||||
return html`
|
return html`
|
||||||
<div class="flex flex-col items-center justify-center gap-3 px-3 py-10">
|
<div class="flex flex-col items-center justify-center gap-3 px-3 py-10">
|
||||||
<p class="text-base text-neutral-500">
|
<p class="text-base text-neutral-500">
|
||||||
|
<slot name="empty-text">
|
||||||
${msg("No public collections yet.")}
|
${msg("No public collections yet.")}
|
||||||
|
</slot>
|
||||||
</p>
|
</p>
|
||||||
<slot name="empty-actions"></slot>
|
<slot name="empty-actions"></slot>
|
||||||
</div>
|
</div>
|
||||||
|
@ -462,6 +462,11 @@ export class Dashboard extends BtrixElement {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
${this.renderNoPublicCollections()}
|
${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 &&
|
||||||
this.collections.value.total > this.collections.value.items.length
|
this.collections.value.total > this.collections.value.items.length
|
||||||
? html`
|
? html`
|
||||||
|
Loading…
Reference in New Issue
Block a user