diff --git a/src/components/ContextMenu.tsx b/src/components/ContextMenu.tsx index 989c1438..1e234043 100644 --- a/src/components/ContextMenu.tsx +++ b/src/components/ContextMenu.tsx @@ -1,5 +1,5 @@ import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'; -import { Play, ListPlus, Radio, Heart, Download, ChevronRight, User, Disc3, ListMusic, Plus, Info, Sparkles, Star } from 'lucide-react'; +import { Play, ListPlus, Radio, Heart, Download, ChevronRight, User, Disc3, ListMusic, Plus, Info, Sparkles, Star, Trash2 } from 'lucide-react'; import LastfmIcon from './LastfmIcon'; import StarRating from './StarRating'; import { lastfmLoveTrack, lastfmUnloveTrack } from '../api/lastfm'; @@ -703,6 +703,11 @@ export default function ContextMenu() { {t('contextMenu.openAlbum')} )} + {song.artistId && ( +
handleAction(() => navigate(`/artist/${song.artistId}`))}> + {t('contextMenu.goToArtist')} +
+ )}
handleAction(() => startRadio(song.artistId ?? song.artist, song.artist, song))}> {t('contextMenu.startRadio')}
@@ -875,7 +880,7 @@ export default function ContextMenu() {
handleAction(() => { if (queueIndex !== undefined) removeTrack(queueIndex); })}> - {t('contextMenu.removeFromQueue')} + {t('contextMenu.removeFromQueue')}
{t('contextMenu.openAlbum')}
)} + {song.artistId && ( +
handleAction(() => navigate(`/artist/${song.artistId}`))}> + {t('contextMenu.goToArtist')} +
+ )}
handleAction(() => startRadio(song.artistId ?? song.artist, song.artist, song))}> {t('contextMenu.startRadio')}