This commit is contained in:
An Phan 2016-03-20 22:06:57 +08:00
parent bf56b740c1
commit 6b0575d033

View file

@ -6,8 +6,8 @@
>
<td class="track-number">{{ song.track }}</td>
<td class="title">{{ song.title }}</td>
<td class="artist"><a @click.prevent="viewArtistDetails">{{ song.album.artist.name }}</a></td>
<td class="album"><a @click.prevent="viewAlbumDetails">{{ song.album.name }}</a></td>
<td class="artist">{{ song.album.artist.name }}</td>
<td class="album">{{ song.album.name }}</td>
<td class="time">{{ song.fmtLength }}</td>
<td class="play" @click.stop="doPlayback">
<i class="fa fa-pause-circle" v-show="song.playbackState === 'playing'"></i>
@ -78,20 +78,6 @@
deselect() {
this.selected = false;
},
/**
* Load the album details screen.
*/
viewAlbumDetails() {
this.$root.loadAlbum(this.song.album);
},
/**
* Load the artist details screen.
*/
viewArtistDetails() {
this.$root.loadArtist(this.song.album.artist);
},
},
};
</script>