added album and artist navigation via song list context menu

This commit is contained in:
alex-phillips 2016-03-21 08:38:10 -04:00
parent 2f923c7d53
commit 02448bbb06

View file

@ -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);
},
},
/**