added "Show in Apple Music" to now playing context menu
This commit is contained in:
parent
4504776ac0
commit
cd0e8fb0aa
4 changed files with 17 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue