Compare commits

..

4 commits

Author SHA1 Message Date
89eac7d8ca chore; added translation for listing members
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-21 15:13:03 +02:00
f00434767c formated files 2025-07-21 15:13:03 +02:00
f17f8fe74d feat (navbar): updated navbar with daisy UI component as demo 2025-07-21 15:13:03 +02:00
bbf760c2b5 feature(memberslist): added columns to memberslist and added selection and sortable header 2025-07-21 15:13:03 +02:00
2 changed files with 1 additions and 14 deletions

View file

@ -1,13 +0,0 @@
defmodule MvWeb.Live.SetLocale do
@moduledoc """
The Module to make the locale available to all LiveViews
"""
import Phoenix.Component
import MvWeb.Gettext
def on_mount(:default, _params, session, socket) do
locale = session["locale"] || "en"
Gettext.put_locale(locale)
{:cont, assign(socket, :locale, locale)}
end
end

View file

@ -46,7 +46,7 @@ defmodule MvWeb.Router do
AshAuthentication-specific: We define that all routes can only be accessed when the user is signed in.
"""
ash_authentication_live_session :authentication_required,
on_mount: [{MvWeb.Live.SetLocale, :default}, {MvWeb.LiveUserAuth, :live_user_required}] do
on_mount: {MvWeb.LiveUserAuth, :live_user_required} do
get "/", PageController, :home
live "/members", MemberLive.Index, :index