feat(admin): add user role dialog

Admins change a user's role and see the change log. The last admin
gets a clear error when deleting their own account.
This commit is contained in:
lobo committed 2026-10-04 20:09:22 +02:00
1 parent e5091de50e
commit 13b0d5e7e9
11 files changed
+391 -18

No files matched your search

+14 -2
View File
@@ -166,7 +166,8 @@
"DONE": "Dein Konto ist gelöscht.",
"WRONG_PASSWORD": "Das Passwort ist falsch.",
"TOO_MANY": "Zu viele falsche Passwörter. Bitte in {{minutes}} Minuten erneut versuchen.",
"ERROR": "Das Konto konnte nicht gelöscht werden. Bitte später erneut versuchen."
"ERROR": "Das Konto konnte nicht gelöscht werden. Bitte später erneut versuchen.",
"LAST_ADMIN": "Du bist der letzte Admin. Mache zuerst einen anderen Nutzer zum Admin."
},
"PROFILE_TILES_HINT": "Wähle, was dein Profil zeigt und wo: öffne dein Profil und klicke auf \"Anpassen\".",
"FAVORITE_PLATFORM": "Lieblingsplattform",
@@ -647,7 +648,18 @@
"PASSWORD_RESET_TEXT": "Die Person bekommt eine Mail mit einem Link, um ein neues Passwort zu wählen (1 Stunde gültig). Du siehst das Passwort nie.",
"DONE_PASSWORD_RESET": "Reset-Mail gesendet.",
"ERROR_NOT_PENDING": "Diese Registrierung ist schon entschieden.",
"ERROR_TARGET_IS_PENDING": "Nimm die Registrierung erst an oder lehne sie ab."
"ERROR_TARGET_IS_PENDING": "Nimm die Registrierung erst an oder lehne sie ab.",
"ROLES": "Rollen",
"ROLES_TITLE": "Rollen von {{email}}",
"ROLES_TEXT": "Die Änderung wirkt nach etwa 30 Sekunden. Der Nutzer muss die Seite eventuell neu laden.",
"SAVE_ROLE": "Speichern",
"DONE_ROLE": "Rolle gespeichert.",
"ROLE_HISTORY": "Änderungen",
"ROLE_HISTORY_EMPTY": "Noch keine Rollenänderungen.",
"ROLE_HISTORY_ERROR": "Die Änderungen konnten nicht geladen werden.",
"ERROR_ROLE_CHANGED": "Die Rolle hat sich inzwischen geändert. Die Liste wird neu geladen.",
"ERROR_ACTOR_NOT_ADMIN": "Du bist kein Admin mehr.",
"ERROR_TARGET_IS_BLOCKED": "Entsperre den Nutzer zuerst."
},
"CORRECTION": {
"OPEN": "Daten korrigieren",
+14 -2
View File
@@ -166,7 +166,8 @@
"DONE": "Your account is deleted.",
"WRONG_PASSWORD": "The password is wrong.",
"TOO_MANY": "Too many wrong passwords. Please try again in {{minutes}} minutes.",
"ERROR": "The account could not be deleted. Please try again later."
"ERROR": "The account could not be deleted. Please try again later.",
"LAST_ADMIN": "You are the last admin. Make another user admin first."
},
"PROFILE_TILES_HINT": "Choose what your profile shows, and where: open your profile and click \"Customize\".",
"FAVORITE_PLATFORM": "Favorite platform",
@@ -647,7 +648,18 @@
"PASSWORD_RESET_TEXT": "The user gets a mail with a link to choose a new password (valid 1 hour). You never see the password.",
"DONE_PASSWORD_RESET": "Reset mail sent.",
"ERROR_NOT_PENDING": "This registration is decided already.",
"ERROR_TARGET_IS_PENDING": "Accept or deny the registration first."
"ERROR_TARGET_IS_PENDING": "Accept or deny the registration first.",
"ROLES": "Roles",
"ROLES_TITLE": "Roles of {{email}}",
"ROLES_TEXT": "The change works within about 30 seconds. The user may need to reload the page.",
"SAVE_ROLE": "Save",
"DONE_ROLE": "Role saved.",
"ROLE_HISTORY": "Changes",
"ROLE_HISTORY_EMPTY": "No role changes yet.",
"ROLE_HISTORY_ERROR": "The changes could not be loaded.",
"ERROR_ROLE_CHANGED": "The role changed in the meantime. The list is loaded again.",
"ERROR_ACTOR_NOT_ADMIN": "You are no admin any more.",
"ERROR_TARGET_IS_BLOCKED": "Unblock the user first."
},
"CORRECTION": {
"OPEN": "Correct data",