fix: correct German translations for role management
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Fix incorrect translations: - 'Listing Roles' -> 'Rollen auflisten' (was 'Benutzer*innen auflisten') - 'Custom' -> 'Benutzerdefiniert' (was 'Benutzerdefinierte Felder')
This commit is contained in:
parent
dd1b126c14
commit
bcd3871245
5 changed files with 10 additions and 15 deletions
|
|
@ -126,7 +126,9 @@ defmodule MvWeb.RoleLive.Index do
|
|||
end
|
||||
|
||||
# Loads all user counts for roles in a single query to avoid N+1 queries
|
||||
@spec load_user_counts([Mv.Authorization.Role.t()], map() | nil) :: %{Ecto.UUID.t() => non_neg_integer()}
|
||||
@spec load_user_counts([Mv.Authorization.Role.t()], map() | nil) :: %{
|
||||
Ecto.UUID.t() => non_neg_integer()
|
||||
}
|
||||
defp load_user_counts(roles, actor) do
|
||||
role_ids = Enum.map(roles, & &1.id)
|
||||
|
||||
|
|
@ -153,7 +155,8 @@ defmodule MvWeb.RoleLive.Index do
|
|||
end
|
||||
|
||||
# Gets user count from preloaded assigns map
|
||||
@spec get_user_count(Mv.Authorization.Role.t(), %{Ecto.UUID.t() => non_neg_integer()}) :: non_neg_integer()
|
||||
@spec get_user_count(Mv.Authorization.Role.t(), %{Ecto.UUID.t() => non_neg_integer()}) ::
|
||||
non_neg_integer()
|
||||
defp get_user_count(role, user_counts) do
|
||||
Map.get(user_counts, role.id, 0)
|
||||
end
|
||||
|
|
@ -169,5 +172,4 @@ defmodule MvWeb.RoleLive.Index do
|
|||
_ -> 0
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -213,5 +213,4 @@ defmodule MvWeb.RoleLive.Show do
|
|||
</Layouts.app>
|
||||
"""
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue