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:
parent
0994506c52
commit
1920c7bc5a
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue