mirror of
https://github.com/koel/koel
synced 2024-12-01 08:19:18 +00:00
Merge pull request #272 from alex-phillips/feature/links
Added navigation links
This commit is contained in:
commit
87a938329a
1 changed files with 16 additions and 2 deletions
|
@ -5,8 +5,8 @@
|
|||
:class="{ selected: selected, playing: song.playbackState === 'playing' || song.playbackState === 'paused' }"
|
||||
>
|
||||
<td class="title">{{ song.title }}</td>
|
||||
<td class="artist">{{ song.album.artist.name }}</td>
|
||||
<td class="album">{{ song.album.name }}</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="time">{{ song.fmtLength }}</td>
|
||||
<td class="play" @click.stop="doPlayback">
|
||||
<i class="fa fa-pause-circle" v-show="song.playbackState === 'playing'"></i>
|
||||
|
@ -77,6 +77,20 @@
|
|||
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>
|
||||
|
|
Loading…
Reference in a new issue