mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-09 16:24:51 +00:00
Add search for users
Change-Id: I4bb4b33819b66846645e2e7a3d38d3e837a5bcd8
This commit is contained in:
parent
4324ebfdb8
commit
3d7c0bf67f
2 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,7 @@ import {
|
|||
TextInput,
|
||||
ReferenceField,
|
||||
ReferenceManyField,
|
||||
SearchInput,
|
||||
SelectInput,
|
||||
BulkDeleteButton,
|
||||
DeleteButton,
|
||||
|
@ -98,6 +99,7 @@ const UserPagination = props => (
|
|||
|
||||
const UserFilter = props => (
|
||||
<Filter {...props}>
|
||||
<SearchInput source="name" alwaysOn />
|
||||
<BooleanInput source="guests" alwaysOn />
|
||||
<BooleanInput
|
||||
label="resources.users.fields.show_deactivated"
|
||||
|
|
|
@ -137,7 +137,7 @@ function getSearchOrder(order) {
|
|||
const dataProvider = {
|
||||
getList: (resource, params) => {
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue