add some buttons to item context menu
This commit is contained in:
parent
2f324ea2af
commit
8eb3e1e170
1 changed files with 20 additions and 1 deletions
|
@ -83,7 +83,26 @@
|
||||||
app.mk.play()
|
app.mk.play()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Add to Queue",
|
||||||
|
"action": function() {
|
||||||
|
console.log(self.item)
|
||||||
|
app.mk.queue.append([new MusicKit.MediaItem(self.item)])
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Go to Artist",
|
||||||
|
"action": function() {
|
||||||
|
app.searchAndNavigate(self.item,'artist')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Go to Album",
|
||||||
|
"action": function() {
|
||||||
|
app.searchAndNavigate(self.item,'album')
|
||||||
|
}
|
||||||
|
},
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue