Skip to content

Commit

Permalink
Only showing library context menu for Spotify
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Jun 18, 2022
1 parent 238d63a commit 2c3681f
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/js/components/ContextMenu/ContextMenuItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ const ContextMenuItems = ({
<>
<Radio uris={[item.uri]} />
<Divider />
<Library uri={item.uri} inLibrary={item.in_library} />
<Divider />
{item.provider === 'spotify' && (
<>
<Library uri={item.uri} inLibrary={item.in_library} />
<Divider />
</>
)}
<Discover uris={[item.uri]} context={context} />
<Divider />
</>
Expand All @@ -112,7 +116,7 @@ const ContextMenuItems = ({
<Play uri={item.uri} action={playPlaylist} context={item} shuffle />
<Enqueue uri={item.uri} action={enqueuePlaylist} context={item} play_next />
<Enqueue uri={item.uri} action={enqueuePlaylist} context={item} />
<Library uri={item.uri} inLibrary={item.in_library} />
{item.provider === 'spotify' && <Library uri={item.uri} inLibrary={item.in_library} />}
<Pin item={item} isPinned={item.is_pinned} />
<Divider />
{item.user && (
Expand Down Expand Up @@ -210,6 +214,15 @@ const ContextMenuItems = ({
</>
);
}
case 'playlist_group':
case 'mood':
case 'category': {
return (
<>
<Copy uris={[item.uri]} />
</>
);
}
default: {
return (
<>
Expand Down

0 comments on commit 2c3681f

Please sign in to comment.