Add basic filters for album and artist

This commit is contained in:
Deluan 2020-01-22 11:22:35 -05:00
parent 9557f7ceed
commit 3a8124a1de

View File

@ -7,6 +7,7 @@ import {
List,
NumberField,
SearchInput,
TextInput,
Show,
SimpleShowLayout,
TextField
@ -16,6 +17,8 @@ import { BitrateField, DurationField, Title } from '../common'
const SongFilter = (props) => (
<Filter {...props}>
<SearchInput source="title" alwaysOn />
<TextInput source="album" />
<TextInput source="artist" />
</Filter>
)
@ -44,7 +47,7 @@ const SongList = (props) => (
filters={<SongFilter />}
perPage={15}
>
<Datagrid rowClick="expand" expand={<SongDetails />}>
<Datagrid expand={<SongDetails />}>
<TextField source="title" />
<TextField source="album" />
<TextField source="artist" />