fix(home): wire download button action in Continue Listening tracks
The DownloadButton in TrackRow receives onDownload from direct props, not from menuActions. Continue Listening was only passing onDownload inside menuActions (for context menu) but not as a direct prop, so clicking the download icon did nothing. Pass onDownload and onRemoveDownload as direct TrackRow props.
This commit is contained in:
1 parent
e29256170c
commit
c5eb685f11
1 file changed
+2
@@ -1304,6 +1304,8 @@
|
||||
hideFavorite={trackBlacklisted}
|
||||
downloadStatus={cacheStatus.status}
|
||||
downloadProgress={cacheStatus.progress}
|
||||
onDownload={!trackBlacklisted && onTrackDownload ? () => onTrackDownload(track) : undefined}
|
||||
onRemoveDownload={isTrackDownloaded && onTrackRemoveDownload ? () => onTrackRemoveDownload(track.id) : undefined}
|
||||
onArtistClick={track.artistId && onArtistClick ? () => onArtistClick(track.artistId!) : undefined}
|
||||
onAlbumClick={track.albumId && onAlbumClick ? () => onAlbumClick(track.albumId!) : undefined}
|
||||
onPlay={trackBlacklisted ? undefined : () => handleContinueTrackPlay(track, index)}
|
||||
|
||||
Reference in new issue
Block a user