feat(credits): enable track info for all Qobuz tracks + add artist link
- Add onTrackShowInfo to HomeView (Continue Listening tracks) - Add onShowInfo to VirtualizedTrackList (for FavoritesView) - Add onTrackShowInfo to FavoritesView and wire to VirtualizedTrackList - Pass showTrackInfo to HomeView and FavoritesView in +page.svelte - Add clickable artist name to TrackInfoModal header - Artist link navigates to artist page and closes modal
This commit is contained in:
1 parent
f7161bafe1
commit
1de77ec132
5 files changed
+53
-1
No files matched your search
@@ -52,6 +52,7 @@
|
||||
onShareSonglink?: (track: Track) => void;
|
||||
onGoToAlbum?: (albumId: string) => void;
|
||||
onGoToArtist?: (artistId: number) => void;
|
||||
onShowInfo?: (trackId: number) => void;
|
||||
onReDownload?: (track: Track) => void;
|
||||
// For getting artist/album IDs from non-local tracks
|
||||
getArtistId?: (track: Track) => number | undefined;
|
||||
@@ -92,6 +93,7 @@
|
||||
onShareSonglink,
|
||||
onGoToAlbum,
|
||||
onGoToArtist,
|
||||
onShowInfo,
|
||||
onReDownload,
|
||||
getArtistId,
|
||||
getAlbumId,
|
||||
@@ -335,6 +337,7 @@
|
||||
onShareSonglink: onShareSonglink ? () => onShareSonglink(item.track) : undefined,
|
||||
onGoToAlbum: albumId && onGoToAlbum ? () => onGoToAlbum(albumId) : undefined,
|
||||
onGoToArtist: artistId && onGoToArtist ? () => onGoToArtist(artistId) : undefined,
|
||||
onShowInfo: !isLocal && onShowInfo ? () => onShowInfo(trackId) : undefined,
|
||||
onDownload: onDownload ? () => onDownload(item.track) : undefined,
|
||||
isTrackDownloaded,
|
||||
onReDownload: isTrackDownloaded && onReDownload ? () => onReDownload(item.track) : undefined,
|
||||
|
||||
Reference in new issue
Block a user