mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
add context menu to left controls
This commit is contained in:
@@ -164,7 +164,19 @@ export const LeftControls = () => {
|
||||
{isSongDefined && (
|
||||
<ActionIcon
|
||||
icon="ellipsisVertical"
|
||||
// onClick={(e) => handleGeneralContextMenu(e, [currentSong!])}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if (currentSong) {
|
||||
ContextMenuController.call({
|
||||
cmd: {
|
||||
items: [currentSong],
|
||||
type: LibraryItem.SONG,
|
||||
},
|
||||
event: e,
|
||||
});
|
||||
}
|
||||
}}
|
||||
size="xs"
|
||||
styles={{
|
||||
root: {
|
||||
|
||||
Reference in New Issue
Block a user