mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
fix(albums): scope All Albums genre filter to selected music library (#959)
* fix(albums): scope All Albums genre filter to selected music library When the sidebar narrows to one Subsonic library, the genre popover fell back to server-wide getGenres() instead of the scoped local index catalog. Load genre options from libraryGetGenreAlbumCounts for library-only scope and enable the catalog path whenever the index is on and a library is selected. * docs: credit All Albums genre filter fix (PR #959, report zunoz) * chore: drop settingsCredits entry for small genre-filter fix
This commit is contained in:
@@ -163,8 +163,6 @@ export default function Albums() {
|
||||
const serverFilterActive = textSearchActive
|
||||
? selectedGenres.length > 0 || textSearchYearBounds.active || losslessOnly || starredOnly
|
||||
: browseData.serverFilterActive;
|
||||
const narrowGenreList = browseData.narrowGenreList;
|
||||
const genreCatalogOptions = browseData.genreCatalogOptions;
|
||||
const yearFilterActive = browseData.yearFilterActive;
|
||||
const debouncedYearFields = browseData.debouncedYearFields;
|
||||
const compFilterActive = browseData.compFilterActive;
|
||||
@@ -398,7 +396,7 @@ export default function Albums() {
|
||||
|
||||
<GenreFilterBar
|
||||
selected={selectedGenres}
|
||||
catalogGenres={narrowGenreList ? genreCatalogOptions : null}
|
||||
catalogGenres={browseData.genreCatalogActive ? browseData.genreCatalogOptions : null}
|
||||
onSelectionChange={setSelectedGenres}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user