fix: show total discovered device count in tab badge instead of paginated count

The discovered tab badge was showing length(@discovered_devices) which is
the paginated list (20 items per page), not the total count. Now shows
@pagination.total_count to display the actual total (e.g., 876 devices).
This commit is contained in:
Graham McIntire 2026-03-10 11:00:06 -05:00
parent 0994506c52
commit 1920c7bc5a
No known key found for this signature in database

View file

@ -68,10 +68,10 @@
>
{t("Discovered")}
<span
:if={@discovered_devices != []}
:if={@pagination && @pagination.total_count > 0}
class="inline-flex items-center px-1.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200"
>
{length(@discovered_devices)}
{@pagination.total_count}
</span>
</.link>
</nav>