From 3d7c0bf67f2112052fe90ed629ac68852debaf28 Mon Sep 17 00:00:00 2001 From: Michael Albert Date: Thu, 8 Oct 2020 08:07:55 +0200 Subject: [PATCH] Add search for users Change-Id: I4bb4b33819b66846645e2e7a3d38d3e837a5bcd8 --- src/components/users.js | 2 ++ src/synapse/dataProvider.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/users.js b/src/components/users.js index c7deda7..d27cde5 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -25,6 +25,7 @@ import { TextInput, ReferenceField, ReferenceManyField, + SearchInput, SelectInput, BulkDeleteButton, DeleteButton, @@ -98,6 +99,7 @@ const UserPagination = props => ( const UserFilter = props => ( + { console.log("getList " + resource); - const { user_id, guests, deactivated } = params.filter; + const { user_id, name, guests, deactivated } = params.filter; const { page, perPage } = params.pagination; const { field, order } = params.sort; const from = (page - 1) * perPage; @@ -145,6 +145,7 @@ const dataProvider = { from: from, limit: perPage, user_id: user_id, + name: name, guests: guests, deactivated: deactivated, order_by: field,