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

View file

@ -176,6 +176,19 @@ export const UserList = props => {
<BooleanField source="is_guest" /> <BooleanField source="is_guest" />
<BooleanField source="admin" /> <BooleanField source="admin" />
<BooleanField source="deactivated" /> <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> </Datagrid>
</List> </List>
); );