From 88ee55d603bcdb9ba8343e10a3c6044ecd7c00fe Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 13 Mar 2026 10:45:45 -0500 Subject: [PATCH] fix: show device link dropdown inline below clicked row in Preseem devices table The linking row was rendered in a separate loop after all device rows, causing it to always appear at the bottom of the table. Changed to use a single for loop with an inline if check so the linking row appears immediately after the corresponding device row. --- lib/towerops_web/live/org/preseem_devices_live.html.heex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/towerops_web/live/org/preseem_devices_live.html.heex b/lib/towerops_web/live/org/preseem_devices_live.html.heex index 3f5938f0..edcbb62a 100644 --- a/lib/towerops_web/live/org/preseem_devices_live.html.heex +++ b/lib/towerops_web/live/org/preseem_devices_live.html.heex @@ -155,8 +155,8 @@ + <%= for ap <- @access_points do %> @@ -224,7 +224,7 @@ <%!-- Inline linking row --%> - <%= for ap <- @access_points, ap.id == @linking_ap_id do %> + <%= if ap.id == @linking_ap_id do %>
@@ -292,6 +292,7 @@ <% end %> + <% end %>