mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-06 18:33:10 +03:00
Add basic filters for album and artist
This commit is contained in:
parent
9557f7ceed
commit
3a8124a1de
@ -7,6 +7,7 @@ import {
|
|||||||
List,
|
List,
|
||||||
NumberField,
|
NumberField,
|
||||||
SearchInput,
|
SearchInput,
|
||||||
|
TextInput,
|
||||||
Show,
|
Show,
|
||||||
SimpleShowLayout,
|
SimpleShowLayout,
|
||||||
TextField
|
TextField
|
||||||
@ -16,6 +17,8 @@ import { BitrateField, DurationField, Title } from '../common'
|
|||||||
const SongFilter = (props) => (
|
const SongFilter = (props) => (
|
||||||
<Filter {...props}>
|
<Filter {...props}>
|
||||||
<SearchInput source="title" alwaysOn />
|
<SearchInput source="title" alwaysOn />
|
||||||
|
<TextInput source="album" />
|
||||||
|
<TextInput source="artist" />
|
||||||
</Filter>
|
</Filter>
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -44,7 +47,7 @@ const SongList = (props) => (
|
|||||||
filters={<SongFilter />}
|
filters={<SongFilter />}
|
||||||
perPage={15}
|
perPage={15}
|
||||||
>
|
>
|
||||||
<Datagrid rowClick="expand" expand={<SongDetails />}>
|
<Datagrid expand={<SongDetails />}>
|
||||||
<TextField source="title" />
|
<TextField source="title" />
|
||||||
<TextField source="album" />
|
<TextField source="album" />
|
||||||
<TextField source="artist" />
|
<TextField source="artist" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user