feat: search in WebUI now is more flexible, searching in all relevant fields in the current view

This commit is contained in:
Deluan
2020-03-19 22:26:18 -04:00
parent 32fbf2e9eb
commit 8401d85f78
6 changed files with 25 additions and 6 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import {
NumberField,
FunctionField,
SearchInput,
TextInput,
NumberInput,
Show,
SimpleShowLayout,
TextField
@@ -19,7 +19,7 @@ import { useMediaQuery } from '@material-ui/core'
const AlbumFilter = (props) => (
<Filter {...props}>
<SearchInput source="name" alwaysOn />
<TextInput source="artist" />
<NumberInput source="year" />
</Filter>
)