mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-17 17:04:16 +02:00
handle context menu on playlist songs
This commit is contained in:
@@ -22,7 +22,11 @@ export const PlayAction = ({ ids, itemType, songs }: PlayActionProps) => {
|
||||
(playType: Play) => {
|
||||
if (ids.length === 0 || !serverId) return;
|
||||
|
||||
if (itemType === LibraryItem.SONG) {
|
||||
if (
|
||||
itemType === LibraryItem.SONG ||
|
||||
itemType === LibraryItem.PLAYLIST_SONG ||
|
||||
itemType === LibraryItem.QUEUE_SONG
|
||||
) {
|
||||
player.addToQueueByData(songs || [], playType);
|
||||
} else {
|
||||
player.addToQueueByFetch(serverId, ids, itemType, playType);
|
||||
|
||||
Reference in New Issue
Block a user