add icons for play next/later

This commit is contained in:
vapormusic 2022-01-13 21:36:11 +07:00
parent 9b5cbafdc4
commit 5f8eb37d38
4 changed files with 60 additions and 0 deletions

View file

@ -258,6 +258,7 @@
items: [
{
name: `Play ${app.selectedMediaItems.length} tracks next`,
"icon": "./assets/arrow-bend-up.svg",
action: () => {
let itemsToPlay = {}
app.selectedMediaItems.forEach(item => {
@ -279,6 +280,7 @@
},
{
name: `Play ${app.selectedMediaItems.length} tracks later`,
"icon": "./assets/arrow-bend-down.svg",
action: () => {
let itemsToPlay = {}
app.selectedMediaItems.forEach(item => {
@ -379,6 +381,7 @@
},
{
"name": "Play Next",
"icon": "./assets/arrow-bend-up.svg",
"action": function () {
app.mk.playNext({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
app.mk.queue._reindex()
@ -387,6 +390,7 @@
},
{
"name": "Play Later",
"icon": "./assets/arrow-bend-down.svg",
"action": function () {
app.mk.playLater({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
app.mk.queue._reindex()