Skip to content

🎧 Your Personal Streaming Service

feat: add name to user list

Deluanb26a5ef2d096
diff --git a/ui/src/user/UserList.js b/ui/src/user/UserList.js
index 40ff4af90..5a900ba50 100644
--- a/ui/src/user/UserList.js
+++ b/ui/src/user/UserList.js
@@ -31,7 +31,7 @@ const UserList = (props) => {
>
{isXsmall ? (
<SimpleList
- primaryText={(record) => record.name}
+ primaryText={(record) => record.userName}
secondaryText={(record) =>
record.lastLoginAt && new Date(record.lastLoginAt).toLocaleString()
}
@@ -40,6 +40,7 @@ const UserList = (props) => {
) : (
<Datagrid rowClick="edit">
<TextField source="userName" />
+ <TextField source="name" />
<BooleanField source="isAdmin" />
<DateField source="lastLoginAt" locales="pt-BR" />
<DateField source="updatedAt" locales="pt-BR" />