Add the pagination to the AuthorIndex LiveView.
continuous-integration/drone/push Build is passing Details

dev
KKlochko 3 months ago
parent 6d5b29a230
commit 4661409c56

@ -47,6 +47,13 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Index do
</:action> </:action>
</.table> </.table>
<.pagination
endpoint={~p"/authors"}
page={@page}
page_params={@page_params}
params={@params}
/>
<.modal <.modal
:if={@live_action in [:new, :edit]} :if={@live_action in [:new, :edit]}
id="author-modal" id="author-modal"
@ -85,7 +92,7 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Index do
page = Metadata.search_author!( page = Metadata.search_author!(
search_query, search_query,
page: page_params, page: page_params ++ [count: true],
) )
socket = socket =

Loading…
Cancel
Save