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
|
@ -207,6 +207,7 @@
|
|||
"action.goToArtist": "Go to Artist",
|
||||
"action.goToAlbum": "Go to Album",
|
||||
"action.showInPlaylist": "Show in Playlist",
|
||||
"action.showInAppleMusic": "Show in Apple Music",
|
||||
"action.moveToTop": "Move out of Folder",
|
||||
"action.share": "Share",
|
||||
"action.rename": "Rename",
|
||||
|
|
|
@ -207,6 +207,7 @@
|
|||
"action.goToArtist": "Go to Artist",
|
||||
"action.goToAlbum": "Go to Album",
|
||||
"action.showInPlaylist": "Show in Playlist",
|
||||
"action.showInAppleMusic": "Show in Apple Music",
|
||||
"action.moveToTop": "Move out of Folder",
|
||||
"action.share": "Share",
|
||||
"action.rename": "Rename",
|
||||
|
|
1
src/renderer/assets/music.svg
Normal file
1
src/renderer/assets/music.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-music"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg>
|
After Width: | Height: | Size: 327 B |
|
@ -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