mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 03:30:39 +03:00
UI: When navigating to another resource, pre-fill the filter with the parent info
This commit is contained in:
parent
7dc3f49c1c
commit
04637b24cd
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user