1
0
Fork 0
mirror of https://github.com/etkecc/synapse-admin.git synced 2025-05-07 03:22:56 +03:00

Enable sorting of user list ()

New in Synapse 1.32.0
Fixes: , 
This commit is contained in:
Dirk Klimpel 2021-05-05 19:36:47 +02:00 committed by GitHub
parent dda8ba5e85
commit 5a5a7143af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions
src/components

View file

@ -162,6 +162,7 @@ export const UserList = props => {
{...props}
filters={<UserFilter />}
filterDefaultValues={{ guests: true, deactivated: false }}
sort={{ field: "name", order: "ASC" }}
actions={<UserListActions maxResults={10000} />}
bulkActionButtons={<UserBulkActionButtons />}
pagination={<UserPagination />}
@ -169,14 +170,14 @@ export const UserList = props => {
<Datagrid rowClick="edit">
<AvatarField
source="avatar_src"
sortable={false}
className={classes.small}
sortBy="avatar_url"
/>
<TextField source="id" sortable={false} />
<TextField source="displayname" sortable={false} />
<BooleanField source="is_guest" sortable={false} />
<BooleanField source="admin" sortable={false} />
<BooleanField source="deactivated" sortable={false} />
<TextField source="id" sortBy="name" />
<TextField source="displayname" />
<BooleanField source="is_guest" />
<BooleanField source="admin" />
<BooleanField source="deactivated" />
</Datagrid>
</List>
);