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

Loading…
Cancel
Save