File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
lib/nerves_hub_web/live/devices Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ test/fixtures/ssl/device-root-ca.srl
2020.lexical
2121.elixir-tools
2222
23- .DS_Store
23+ .DS_Store
24+ /cover /
Original file line number Diff line number Diff line change @@ -291,8 +291,10 @@ defmodule NervesHubWeb.Live.Devices.Show do
291291 params = % { "page_size" => socket . assigns . page_size , "page_number" => page_number }
292292 % { org: org , product: product , device: device } = socket . assigns
293293
294+ url = ~p" /org/#{ org } /#{ product } /devices/#{ device } ?#{ params } "
295+
294296 socket
295- |> push_patch ( to: ~p " /org/ #{ org } / #{ product } /devices/ #{ device } ? #{ params } " )
297+ |> push_patch ( to: url )
296298 |> noreply ( )
297299 end
298300
@@ -487,6 +489,7 @@ defmodule NervesHubWeb.Live.Devices.Show do
487489 def handle_event ( "set-paginate-opts" , % { "page-size" => page_size } , socket ) do
488490 params = % { "page_size" => page_size , "page_number" => "1" }
489491 % { org: org , product: product , device: device } = socket . assigns
492+
490493 url = ~p" /org/#{ org } /#{ product } /devices/#{ device } ?#{ params } "
491494
492495 socket
You can’t perform that action at this time.
0 commit comments