feat(track-info): integrate TrackInfoModal with views
Phase 3 - Integration: - Add onTrackShowInfo prop to TrackRow, AlbumDetailView, PlaylistDetailView, SearchView - Add TrackInfoModal to +page.svelte with state management - Pass showTrackInfo callback from main page to all views cc
This commit is contained in:
1 parent
e767809857
commit
6601a3a5e6
5 files changed
+36
No files matched your search
@@ -60,6 +60,7 @@
|
||||
onTrackShareSonglink?: (track: Track) => void;
|
||||
onTrackGoToAlbum?: (albumId: string) => void;
|
||||
onTrackGoToArtist?: (artistId: number) => void;
|
||||
onTrackShowInfo?: (trackId: number) => void;
|
||||
onPlayAll?: () => void;
|
||||
onShuffleAll?: () => void;
|
||||
onPlayAllNext?: () => void;
|
||||
@@ -103,6 +104,7 @@
|
||||
onTrackShareSonglink,
|
||||
onTrackGoToAlbum,
|
||||
onTrackGoToArtist,
|
||||
onTrackShowInfo,
|
||||
onPlayAll,
|
||||
onShuffleAll,
|
||||
onPlayAllNext,
|
||||
@@ -408,6 +410,7 @@
|
||||
onShareQobuz: onTrackShareQobuz ? () => onTrackShareQobuz(track.id) : undefined,
|
||||
onShareSonglink: onTrackShareSonglink ? () => onTrackShareSonglink(track) : undefined,
|
||||
onGoToArtist: album.artistId && onTrackGoToArtist ? () => onTrackGoToArtist(album.artistId!) : undefined,
|
||||
onShowInfo: onTrackShowInfo ? () => onTrackShowInfo(track.id) : undefined,
|
||||
onDownload: onTrackDownload ? () => onTrackDownload(track) : undefined,
|
||||
isTrackDownloaded,
|
||||
onReDownload: isTrackDownloaded && onTrackReDownload ? () => onTrackReDownload(track) : undefined,
|
||||
|
||||
Reference in new issue
Block a user