feat: prevent deletion of roles with assigned users

This commit is contained in:
Moritz 2026-01-08 12:05:56 +01:00
parent 954fc4261a
commit b638a54bd6
Signed by: moritz
GPG key ID: 1020A035E5DD0824
5 changed files with 89 additions and 30 deletions

View file

@ -1984,6 +1984,12 @@ msgstr ""
msgid "Roles"
msgstr ""
#: lib/mv_web/live/role_live/index.ex
#: lib/mv_web/live/role_live/show.ex
#, elixir-autogen, elixir-format
msgid "Cannot delete role. %{count} user(s) are still assigned to this role. Please assign them to another role first."
msgstr ""
#~ #: lib/mv_web/live/components/payment_filter_component.ex
#~ #, elixir-autogen, elixir-format
#~ msgid "All payment statuses"