add locale to user settings

This commit is contained in:
2022-05-05 20:55:59 -04:00
committed by oliviasculley
parent fd4fdcc36b
commit 302aa7eeda
20 changed files with 224 additions and 79 deletions

View File

@ -10,9 +10,7 @@ defmodule LokalWeb.InviteLive.Index do
alias Phoenix.LiveView.JS
@impl true
def mount(_params, session, socket) do
%{assigns: %{current_user: current_user}} = socket = socket |> assign_defaults(session)
def mount(_params, _session, %{assigns: %{current_user: current_user}} = socket) do
socket =
if current_user |> Map.get(:role) == :admin do
socket |> display_invites()