- track selection on row click (js)

- left margin alignment for 'explicit' icon (css)
- softer alt colors in table (light theme) (css)
- more visible download icon hover color (css)
This commit is contained in:
mortalis
2020-07-25 15:22:16 +02:00
parent d70d90548c
commit eb483b813f
6 changed files with 21 additions and 9 deletions

View File

@@ -35,8 +35,8 @@
</thead>
<tbody>
<template v-if="type !== 'spotifyPlaylist'">
<template v-for="track in body">
<tr v-if="track.type == 'track'">
<template v-for="(track, index) in body">
<tr v-if="track.type == 'track'" @click="selectRow(index, track)">
<td class="table__cell--x-small table__cell--center">
<div class="table__cell-content table__cell-content--vertical-center">
<i
@@ -285,10 +285,14 @@ export default {
} else {
this.body = playlistTracks
}
},
selectRow(index, track) {
track.selected = !track.selected;
}
},
mounted() {
EventBus.$on('tracklistTab:reset', this.reset)
EventBus.$on('tracklistTab:selectRow', this.selectRow)
socket.on('show_album', this.showAlbum)
socket.on('show_playlist', this.showPlaylist)