Add sorting users by creation timestamp (#174)

* Add `creation_ts` to list users

* remove filter

* Bring back origin columns sort order
This commit is contained in:
Dirk Klimpel 2021-12-08 21:59:09 +01:00 committed by GitHub
parent abc9d5154e
commit 91af8f1c04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -176,6 +176,19 @@ export const UserList = props => {
<BooleanField source="is_guest" />
<BooleanField source="admin" />
<BooleanField source="deactivated" />
<DateField
source="creation_ts"
label="resources.users.fields.creation_ts_ms"
showTime
options={{
year: "numeric",
month: "2-digit",
day: "2-digit",
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
}}
/>
</Datagrid>
</List>
);