mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
add "I love this" context menu item
This commit is contained in:
@@ -82,6 +82,12 @@ export default (track: Track): Array<Option> => {
|
|||||||
critical: true,
|
critical: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const addToFav:Option = {
|
||||||
|
label: "I love this",
|
||||||
|
action: () => console.log("I love this"),
|
||||||
|
icon: "heart",
|
||||||
|
}
|
||||||
|
|
||||||
const separator: Option = {
|
const separator: Option = {
|
||||||
type: "separator",
|
type: "separator",
|
||||||
};
|
};
|
||||||
@@ -89,6 +95,7 @@ export default (track: Track): Array<Option> => {
|
|||||||
const options: Option[] = [
|
const options: Option[] = [
|
||||||
option1,
|
option1,
|
||||||
option2,
|
option2,
|
||||||
|
addToFav,
|
||||||
separator,
|
separator,
|
||||||
option3,
|
option3,
|
||||||
option4,
|
option4,
|
||||||
|
|||||||
Reference in New Issue
Block a user