mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 03:30:39 +03:00
feat: show times in user edit and list views
This commit is contained in:
parent
1f27db9803
commit
478090380d
@ -22,10 +22,10 @@ const UserEdit = (props) => (
|
||||
<TextInput source="email" validate={[required(), email()]} />
|
||||
<PasswordInput source="password" validate={[required()]} />
|
||||
<BooleanInput source="isAdmin" initialValue={false} />
|
||||
<DateField source="lastLoginAt" />
|
||||
<DateField source="lastAccessAt" />
|
||||
<DateField source="updatedAt" />
|
||||
<DateField source="createdAt" />
|
||||
<DateField source="lastLoginAt" showTime />
|
||||
<DateField source="lastAccessAt" showTime />
|
||||
<DateField source="updatedAt" showTime />
|
||||
<DateField source="createdAt" showTime />
|
||||
</SimpleForm>
|
||||
</Edit>
|
||||
)
|
||||
|
@ -32,6 +32,10 @@ const UserList = (props) => {
|
||||
{isXsmall ? (
|
||||
<SimpleList
|
||||
primaryText={(record) => record.name}
|
||||
secondaryText={(record) =>
|
||||
record.lastAccessAt &&
|
||||
new Date(record.lastAccessAt).toLocaleString()
|
||||
}
|
||||
tertiaryText={(record) => (record.isAdmin ? '[admin]️' : '')}
|
||||
/>
|
||||
) : (
|
||||
|
Loading…
x
Reference in New Issue
Block a user