feat: improve admin settings and user profile

This commit is contained in:
LukeGus
2026-05-13 01:28:12 -05:00
parent 1be5d20744
commit ec87f8a4d1
10 changed files with 218 additions and 85 deletions
+4 -2
View File
@@ -405,7 +405,9 @@ export function UserEditDialog({
>
<div>
<p className="font-medium text-sm">
{t(role.roleDisplayName)}
{role.roleDisplayName
? t(role.roleDisplayName)
: role.roleName}
</p>
<p className="text-xs text-muted-foreground">
{role.roleName}
@@ -453,7 +455,7 @@ export function UserEditDialog({
onClick={() => handleAssignRole(role.id)}
>
<Plus className="h-3 w-3 mr-1" />
{t(role.displayName)}
{role.displayName ? t(role.displayName) : role.name}
</Button>
))}
{availableRoles.filter(