fix(frontend): Hide archive toggle with empty list (#1296)

This commit is contained in:
Ádám Kovács
2023-03-16 12:36:56 +01:00
committed by GitHub
parent 6fd1c704ea
commit 9cfd6828ee
@@ -302,7 +302,7 @@
</div>
<div class="relative">
<ListFilters bind:selectedFilter={ownerFilter} filters={owners} />
{#if !loading}
{#if !loading && filteredItems?.length}
<div class="absolute -bottom-2 right-0 bg-white/90">
<Toggle size="xs" bind:checked={archived} options={{ right: 'Show archived' }} /></div
>