|
@@ -193,17 +193,16 @@
|
|
|
class="autosuggest-item"
|
|
|
tabindex="0"
|
|
|
@click="selectArtistAutosuggest(item)"
|
|
|
- v-for="(item,
|
|
|
- index) in artistAutosuggestItems"
|
|
|
- :key="index"
|
|
|
+ v-for="item in artistAutosuggestItems"
|
|
|
+ :key="item"
|
|
|
>{{ item }}</span
|
|
|
>
|
|
|
</div>
|
|
|
<div class="list-container">
|
|
|
<div
|
|
|
class="list-item"
|
|
|
- v-for="(artist, index) in song.artists"
|
|
|
- :key="index"
|
|
|
+ v-for="artist in song.artists"
|
|
|
+ :key="artist"
|
|
|
>
|
|
|
<div
|
|
|
class="list-item-circle"
|
|
@@ -265,17 +264,16 @@
|
|
|
<span
|
|
|
class="autosuggest-item"
|
|
|
@click="selectGenreAutosuggest(item)"
|
|
|
- v-for="(item,
|
|
|
- index) in genreAutosuggestItems"
|
|
|
- :key="index"
|
|
|
+ v-for="item in genreAutosuggestItems"
|
|
|
+ :key="item"
|
|
|
>{{ item }}</span
|
|
|
>
|
|
|
</div>
|
|
|
<div class="list-container">
|
|
|
<div
|
|
|
class="list-item"
|
|
|
- v-for="(genre, index) in song.genres"
|
|
|
- :key="index"
|
|
|
+ v-for="genre in song.genres"
|
|
|
+ :key="genre"
|
|
|
>
|
|
|
<div
|
|
|
class="list-item-circle"
|
|
@@ -381,7 +379,7 @@
|
|
|
<div
|
|
|
class="api-result"
|
|
|
v-for="(result, index) in discogs.apiResults"
|
|
|
- :key="index"
|
|
|
+ :key="result.album.id"
|
|
|
tabindex="0"
|
|
|
@keydown.space.prevent
|
|
|
@keyup.enter="toggleAPIResult(index)"
|
|
@@ -441,7 +439,9 @@
|
|
|
tabindex="0"
|
|
|
v-for="(track,
|
|
|
trackIndex) in result.tracks"
|
|
|
- :key="trackIndex"
|
|
|
+ :key="
|
|
|
+ `${track.position}-${track.title}`
|
|
|
+ "
|
|
|
@click="
|
|
|
selectTrack(index, trackIndex)
|
|
|
"
|
|
@@ -593,10 +593,10 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
/* eslint-disable */
|
|
|
- "song.duration": function () {
|
|
|
+ "song.duration": function() {
|
|
|
this.drawCanvas();
|
|
|
},
|
|
|
- "song.skipDuration": function () {
|
|
|
+ "song.skipDuration": function() {
|
|
|
this.drawCanvas();
|
|
|
}
|
|
|
/* eslint-enable */
|