Handle queue all songs by double click (#67)

This commit is contained in:
jeffvli 2023-05-20 21:31:00 -07:00
parent 93530008a9
commit 51c2731b07
11 changed files with 129 additions and 55 deletions

View file

@ -201,8 +201,13 @@ export const PlaylistDetailContent = ({ tableRef }: PlaylistDetailContentProps)
const handleRowDoubleClick = (e: RowDoubleClickedEvent<QueueSong>) => {
if (!e.data) return;
handlePlayQueueAdd?.({
byData: [e.data],
byItemType: {
id: [playlistId],
type: LibraryItem.PLAYLIST,
},
initialSongId: e.data.id,
playType: playButtonBehavior,
});
};