feat: refresh trail line when trail duration changes
- Regenerate trail line after trail duration update - Trail line now respects trail duration setting
This commit is contained in:
parent
464ba84202
commit
9a071b6e3a
1 changed files with 8 additions and 0 deletions
|
|
@ -535,6 +535,14 @@ defmodule AprsmeWeb.MapLive.Index do
|
|||
# Trigger cleanup to remove packets that are now outside the new duration
|
||||
send(self(), :cleanup_old_packets)
|
||||
|
||||
# If tracking a callsign at low zoom, refresh the trail line with new duration
|
||||
socket =
|
||||
if socket.assigns.tracked_callsign != "" and socket.assigns.map_zoom <= 8 do
|
||||
DisplayManager.send_trail_line_for_tracked_callsign(socket)
|
||||
else
|
||||
socket
|
||||
end
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue