UI: When navigating to another resource, pre-fill the filter with the parent info

This commit is contained in:
Deluan 2020-01-22 14:03:18 -05:00
parent 7dc3f49c1c
commit 04637b24cd
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ const AlbumDetails = (props) => {
}
const albumRowClick = (id, basePath, record) =>
`/song?filter={"album_id":"${record.id}"}&order=ASC&sort=trackNumber`
`/song?filter={"artist":"${record.artist}","album":"${record.name}","album_id":"${record.id}"}&order=ASC&sort=trackNumber`
const AlbumList = (props) => (
<List

View File

@ -16,7 +16,7 @@ const ArtistFilter = (props) => (
)
const artistRowClick = (id, basePath, record) =>
`/album?filter={"artist_id":"${record.id}"}&order=ASC&sort=year`
`/album?filter={"artist":"${record.name}","artist_id":"${record.id}"}&order=ASC&sort=year`
const ArtistList = (props) => (
<List