persist sort order

This commit is contained in:
Rafael Epplée 2025-12-01 11:49:09 +01:00
parent e803dbdf8b
commit 36dcf3fbe1
No known key found for this signature in database
GPG key ID: B4EFE6DC59FAE118
3 changed files with 114 additions and 17 deletions

View file

@ -1,12 +1,13 @@
<Layouts.app flash={@flash} current_user={@current_user}>
<.header>
{gettext("Members")}
<:actions>
<.button variant="primary" navigate={~p"/members/new"}>
<.icon name="hero-plus" /> {gettext("New Member")}
</.button>
</:actions>
</.header>
<div id="member-sort-persistence" phx-hook="MemberSortPersistence">
<.header>
{gettext("Members")}
<:actions>
<.button variant="primary" navigate={~p"/members/new"}>
<.icon name="hero-plus" /> {gettext("New Member")}
</.button>
</:actions>
</.header>
<.live_component
module={MvWeb.Components.SearchBarComponent}
@ -205,4 +206,5 @@
</.link>
</:action>
</.table>
</div>
</Layouts.app>