Add filter to users list

This commit is contained in:
dklimpel 2020-03-29 16:05:54 +02:00
parent c34477343e
commit 00d3069efd

View File

@ -14,10 +14,12 @@ import {
TextInput, TextInput,
ReferenceField, ReferenceField,
regex, regex,
SearchInput,
} from "react-admin"; } from "react-admin";
const UserFilter = props => ( const UserFilter = props => (
<Filter {...props}> <Filter {...props}>
<SearchInput source="user_id" alwaysOn />
<BooleanInput source="guests" alwaysOn /> <BooleanInput source="guests" alwaysOn />
<BooleanInput <BooleanInput
label="resources.users.fields.show_deactivated" label="resources.users.fields.show_deactivated"