Commit 725f7fe5 authored by Agate's avatar Agate 💬

Added artist link on track table, also added active link class on router links

parent 4c4671f1
......@@ -21,9 +21,17 @@
<img class="ui mini image" v-if="track.album.cover" :src="backend.absoluteUrl(track.album.cover)">
<img class="ui mini image" v-else src="../../..//assets/audio/default-cover.png">
</td>
<td colspan="6">{{ track.title }}</td>
<td colspan="6">{{ track.album.title }}</td>
<td colspan="6">{{ track.artist.name }}</td>
<td colspan="6">
{{ track.title }}
</td>
<td colspan="6">
{{ track.album.title }}
</td>
<td colspan="6">
<router-link class="artist" :to="{name: 'browse.artist', params: {id: track.artist.id }}">
{{ track.artist.name }}
</router-link>
</td>
<td><track-favorite-icon :track="track"></track-favorite-icon></td>
</tr>
</tbody>
......
......@@ -12,6 +12,7 @@ Vue.use(Router)
export default new Router({
mode: 'history',
linkActiveClass: 'active',
routes: [
{
path: '/',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment