Skip to content

Commit

Permalink
Changed UI to display user friendly name when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovo committed Dec 12, 2024
1 parent 2331a7b commit 8892f3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webui/src/lib/components/auth/forms.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {Checkbox, DataTable, DebouncedFormControl, AlertError, Loading} from "..
const resolveEntityDisplayName = (ent) => {
// for users
if (ent?.email?.length) return ent.email;
if (ent?.friendly_name?.length) return ent.friendly_name;
// for groups
if (ent?.name?.length) return ent.name;
return ent.id;
Expand Down

0 comments on commit 8892f3c

Please sign in to comment.