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:
cucadmuh
2026-06-03 22:05:35 +03:00
committed by GitHub
parent 75e2c7f9c6
commit a142bb1dab
5 changed files with 115 additions and 6 deletions
+1 -3
View File
@@ -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}
/>