mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
added album and artist navigation via song list context menu
This commit is contained in:
parent
2f923c7d53
commit
02448bbb06
1 changed files with 20 additions and 0 deletions
|
@ -7,6 +7,12 @@
|
|||
<span v-if="songs[0].playbackState !== 'playing'">Play</span>
|
||||
<span v-else>Pause</span>
|
||||
</li>
|
||||
<li v-if="onlyOneSongSelected" @click="goToAlbum">
|
||||
<span>Go to Album</span>
|
||||
</li>
|
||||
<li v-if="onlyOneSongSelected" @click="goToArtist">
|
||||
<span>Go to Artist</span>
|
||||
</li>
|
||||
<li class="has-sub">Add To
|
||||
<ul class="menu submenu">
|
||||
<li @click="queueSongsToBottom">Bottom of Queue</li>
|
||||
|
@ -114,6 +120,20 @@
|
|||
|
||||
this.close();
|
||||
},
|
||||
|
||||
/**
|
||||
* Navigate to the song's album view
|
||||
*/
|
||||
goToAlbum() {
|
||||
this.$root.loadAlbum(this.songs[0].album);
|
||||
},
|
||||
|
||||
/**
|
||||
* Navigate to the song's artist view
|
||||
*/
|
||||
goToArtist() {
|
||||
this.$root.loadArtist(this.songs[0].album.artist);
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue