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

This commit is contained in:
2025-03-25 22:04:48 +02:00
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 =