Skip to content

Commit a7e3899

Browse files
author
Taras Tyshko
committed
revert .gitignore and some part of code
1 parent fb38516 commit a7e3899

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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/

lib/nerves_hub_web/live/devices/show.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)