From 1920c7bc5a23f182952b465e899e29337a1d269a Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 10 Mar 2026 11:00:06 -0500 Subject: [PATCH] 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). --- lib/towerops_web/live/device_live/index.html.heex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/towerops_web/live/device_live/index.html.heex b/lib/towerops_web/live/device_live/index.html.heex index 0fbeb3d7..4ed4b64a 100644 --- a/lib/towerops_web/live/device_live/index.html.heex +++ b/lib/towerops_web/live/device_live/index.html.heex @@ -68,10 +68,10 @@ > {t("Discovered")} 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}