mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 03:30:39 +03:00
Add basic filters for album and artist
This commit is contained in:
parent
9557f7ceed
commit
3a8124a1de
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user