mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-15 21:03:47 +00:00
feat: improve admin settings and user profile
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user