From 5a5a7143af08e7c6e7f7d3de50855b3fffe875a3 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Wed, 5 May 2021 19:36:47 +0200 Subject: [PATCH] Enable sorting of user list (#133) New in Synapse 1.32.0 Fixes: #132, #136 --- README.md | 2 +- src/components/users.js | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1356b6e..93053d5 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This project is built using [react-admin](https://marmelab.com/react-admin/). -It needs at least Synapse v1.29.0 for all functions to work as expected! +It needs at least Synapse v1.32.0 for all functions to work as expected! You get your server version with the request `/_synapse/admin/v1/server_version`. See also [Synapse version API](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/version_api.rst). diff --git a/src/components/users.js b/src/components/users.js index 3c5690b..ecce484 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -162,6 +162,7 @@ export const UserList = props => { {...props} filters={} filterDefaultValues={{ guests: true, deactivated: false }} + sort={{ field: "name", order: "ASC" }} actions={} bulkActionButtons={} pagination={} @@ -169,14 +170,14 @@ export const UserList = props => { - - - - - + + + + + );