diff --git a/ui/src/common/SongContextMenu.jsx b/ui/src/common/SongContextMenu.jsx
index 32fbeb24..5eff495b 100644
--- a/ui/src/common/SongContextMenu.jsx
+++ b/ui/src/common/SongContextMenu.jsx
@@ -31,6 +31,9 @@ const useStyles = makeStyles({
noWrap: {
whiteSpace: 'nowrap',
},
+ disabledMenuItem: {
+ pointerEvents: 'auto',
+ },
})
const MoreButton = ({ record, onClick, info }) => {
@@ -233,19 +236,29 @@ export const SongContextMenu = ({
open={open}
onClose={handleMainMenuClose}
>
- {Object.keys(options).map(
- (key) =>
+ {Object.keys(options).map((key) => {
+ const showInPlaylistDisabled =
+ key === 'showInPlaylist' && !playlists.length
+ return (
options[key].enabled && (
- ),
- )}
+ )
+ )
+ })}