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
+1 -4
View File
@@ -9,8 +9,7 @@ import {
SearchInput,
Show,
SimpleShowLayout,
TextField,
TextInput
TextField
} from 'react-admin'
import { useMediaQuery } from '@material-ui/core'
import {
@@ -29,8 +28,6 @@ import { SongBulkActions } from './SongBulkActions'
const SongFilter = (props) => (
<Filter {...props}>
<SearchInput source="title" alwaysOn />
<TextInput source="album" />
<TextInput source="artist" />
</Filter>
)