fix: reload download states in HomeView and ArtistDetailView when download state changes
cp
This commit is contained in:
1 parent
87f8980323
commit
6cc625c0f1
2 files changed
+27
No files matched your search
@@ -164,6 +164,21 @@
|
||||
return albumDownloadStatuses.get(albumId) || false;
|
||||
}
|
||||
|
||||
$effect(() => {
|
||||
if (downloadStateVersion !== undefined) {
|
||||
const allAlbums = [
|
||||
...newReleases,
|
||||
...pressAwards,
|
||||
...mostStreamed,
|
||||
...qobuzissimes,
|
||||
...editorPicks,
|
||||
...recentAlbums,
|
||||
...favoriteAlbums
|
||||
];
|
||||
loadAllAlbumDownloadStatuses(allAlbums);
|
||||
}
|
||||
});
|
||||
|
||||
const hasContent = $derived(
|
||||
newReleases.length > 0
|
||||
|| pressAwards.length > 0
|
||||
|
||||
Reference in new issue
Block a user