Skip to content

Commit

Permalink
Add 'no tasks found' if there are 0 rows being displayed by the table.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scooter1337 committed Mar 20, 2024
1 parent ed3765a commit 6e01b52
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@
</Table.Row>
</Subscribe>
{/each}
{#if $pageRows.length === 0}
<Table.Row>
<Table.Cell colspan={columns.length} class="h-24 text-center">
No tasks found.
</Table.Cell>
</Table.Row>
{/if}
</Table.Body>
</Table.Root>
</div>
Expand Down

0 comments on commit 6e01b52

Please sign in to comment.