feat(ui): show user's lastAccess (#3342)
* feat(server): update user's lastAccess * feat(ui): show user's lastAccess
This commit is contained in:
@@ -140,7 +140,7 @@ const UserEdit = (props) => {
|
||||
<BooleanInput source="isAdmin" initialValue={false} />
|
||||
)}
|
||||
<DateField variant="body1" source="lastLoginAt" showTime />
|
||||
{/*<DateField source="lastAccessAt" showTime />*/}
|
||||
<DateField variant="body1" source="lastAccessAt" showTime />
|
||||
<DateField variant="body1" source="updatedAt" showTime />
|
||||
<DateField variant="body1" source="createdAt" showTime />
|
||||
</SimpleForm>
|
||||
|
||||
@@ -41,6 +41,7 @@ const UserList = (props) => {
|
||||
<TextField source="name" />
|
||||
<BooleanField source="isAdmin" />
|
||||
<DateField source="lastLoginAt" sortByOrder={'DESC'} />
|
||||
<DateField source="lastAccessAt" sortByOrder={'DESC'} />
|
||||
<DateField source="updatedAt" sortByOrder={'DESC'} />
|
||||
</Datagrid>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user