added "Show in Apple Music" to now playing context menu

This commit is contained in:
booploops 2022-03-08 17:57:26 -08:00
parent 4504776ac0
commit cd0e8fb0aa
4 changed files with 17 additions and 0 deletions

View file

@ -3687,6 +3687,15 @@ const app = new Vue({
app.appRoute(`album/${app.mk.nowPlayingItem.relationships.albums.data[0].id}`)
}
},
{
"id": "showInMusic",
"icon": "./assets/music.svg",
"hidden": true,
"name": app.getLz('action.showInAppleMusic'),
"action": function () {
app.routeView(app.mk.nowPlayingItem._container)
}
},
{
"icon": "./assets/feather/share.svg",
"name": app.getLz('action.share'),
@ -3713,6 +3722,11 @@ const app = new Vue({
menus.normal.items = menus.normal.items.concat(this.contextExt.normal)
}
}
if(app.mk.nowPlayingItem._container["attributes"] && app.mk.nowPlayingItem._container.name != "station") {
menus.normal.items.find(x => x.id == "showInMusic").hidden = false
}
this.showMenuPanel(menus[useMenu], event)
try {