feat(ui): show user's lastAccess (#3342)
* feat(server): update user's lastAccess * feat(ui): show user's lastAccess
This commit is contained in:
+2
-1
@@ -97,7 +97,8 @@
|
||||
"fields": {
|
||||
"userName": "Username",
|
||||
"isAdmin": "Is Admin",
|
||||
"lastLoginAt": "Last Login At",
|
||||
"lastLoginAt": "Last Login",
|
||||
"lastAccessAt": "Last Access",
|
||||
"updatedAt": "Updated at",
|
||||
"name": "Name",
|
||||
"password": "Password",
|
||||
|
||||
@@ -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