feat(dashboard): show item count on dash lists

This commit is contained in:
Jake Fulmine 2022-08-22 12:43:04 +02:00
parent e60eeba6ed
commit 0227efbbca

View File

@ -133,6 +133,7 @@
</Col>
</Row>
{:else}
<span class="itemcounter">{list.length} {itemType}s ({slicedList.length} shown)</span>
<ListSearch bind:searchBy bind:searchValue on:refresh={fetchList} />
<ListPagination bind:currentPage {pageAmount} />
@ -147,3 +148,12 @@
<CardsList on:update={update} on:deletion={updateDelete} list={slicedList} groups={groups} members={members} isPublic={isPublic} itemType={itemType} itemsPerPage={itemsPerPage} currentPage={currentPage} fullLength={list.length} {sortBy} {searchBy} />
<ListPagination bind:currentPage {pageAmount} />
{/if}
<style>
.itemcounter {
width: 100%;
text-align: center;
display: inline-block;
margin-bottom: 0.5rem;
}
</style>