Fix genre prop propagation for album cards
- Add genre field to QobuzTrack.album type - Add genre to compilation albums in qobuzAdapters - Add getGenreLabel function to LabelView - Add genre prop to AlbumDetailView artist albums - Update +page.svelte artist albums mapping to include genre
This commit is contained in:
1 parent
2a89b025a6
commit
4b9d819a98
5 files changed
+15
-4
No files matched your search
@@ -159,6 +159,10 @@
|
||||
return '';
|
||||
}
|
||||
|
||||
function getGenreLabel(album: QobuzAlbum): string {
|
||||
return album.genre?.name || '';
|
||||
}
|
||||
|
||||
function clearSearch() {
|
||||
searchQuery = '';
|
||||
}
|
||||
@@ -273,6 +277,7 @@
|
||||
artwork={album.image?.large || album.image?.thumbnail || ''}
|
||||
title={album.title}
|
||||
artist={album.artist?.name || 'Unknown Artist'}
|
||||
genre={getGenreLabel(album)}
|
||||
quality={getQualityLabel(album)}
|
||||
size="large"
|
||||
onclick={() => onAlbumClick?.(album.id)}
|
||||
|
||||
Reference in new issue
Block a user