Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions explorer/lib/explorer_web/live/pages/agg_proofs/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule ExplorerWeb.AggProofs.Index do
@page_size 15

@impl true
def mount(_, params, socket) do
def mount(params, _, socket) do
current_page = get_current_page(params)

proofs =
Expand All @@ -31,7 +31,7 @@ defmodule ExplorerWeb.AggProofs.Index do

@impl true
def handle_event("change_page", %{"page" => page}, socket) do
{:noreply, push_navigate(socket, to: ~p"/batches?page=#{page}")}
{:noreply, push_navigate(socket, to: ~p"/aggregated_proofs?page=#{page}")}
end

defp get_current_page(params) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<% end %>
<div class="flex gap-x-2 items-center justify-center w-full">
<%= if @current_page >= 2 do %>
<.link navigate={~p"/batches?page=#{1}"}>
<.link navigate={~p"/aggregated_proofs?page=#{1}"}>
<.button class="text-muted-foreground group">
First
</.button>
Expand Down Expand Up @@ -54,7 +54,7 @@
<span class="sr-only">Next Page</span>
</.button>
</.link>
<.link navigate={~p"/batches?page=#{@last_page}"}>
<.link navigate={~p"/aggregated_proofs?page=#{@last_page}"}>
<.button class="text-muted-foreground group">
Last
</.button>
Expand Down