File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
explorer/lib/explorer_web/live/pages/agg_proofs Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ defmodule ExplorerWeb.AggProofs.Index do
66 @ page_size 15
77
88 @ impl true
9- def mount ( _ , params , socket ) do
9+ def mount ( params , _ , socket ) do
1010 current_page = get_current_page ( params )
1111
1212 proofs =
@@ -31,7 +31,7 @@ defmodule ExplorerWeb.AggProofs.Index do
3131
3232 @ impl true
3333 def handle_event ( "change_page" , % { "page" => page } , socket ) do
34- { :noreply , push_navigate ( socket , to: ~p" /batches ?page=#{ page } " ) }
34+ { :noreply , push_navigate ( socket , to: ~p" /aggregated_proofs ?page=#{ page } " ) }
3535 end
3636
3737 defp get_current_page ( params ) do
Original file line number Diff line number Diff line change 99 <% end %>
1010 < div class = "flex gap-x-2 items-center justify-center w-full " >
1111 <%= if @ current_page >= 2 do %>
12- < . link navigate = { ~p" /batches ?page=#{ 1 } " } >
12+ < . link navigate = { ~p" /aggregated_proofs ?page=#{ 1 } " } >
1313 < . button class = "text-muted-foreground group " >
1414 First
1515 </ . button >
5454 < span class = "sr-only " > Next Page</ span >
5555 </ . button >
5656 </ . link >
57- < . link navigate = { ~p" /batches ?page=#{ @ last_page } " } >
57+ < . link navigate = { ~p" /aggregated_proofs ?page=#{ @ last_page } " } >
5858 < . button class = "text-muted-foreground group " >
5959 Last
6060 </ . button >
You can’t perform that action at this time.
0 commit comments