refactor vuex actions

This commit is contained in:
Thomas Amland
2020-10-02 20:07:53 +02:00
parent e64ad522af
commit f3bdbbd44d
5 changed files with 24 additions and 20 deletions
+4 -1
View File
@@ -59,7 +59,10 @@
if (this.items[index].id === this.playingTrackId) {
return this.$store.dispatch('player/playPause')
}
return this.$store.dispatch('player/playQueue', { index, queue: this.items })
return this.$store.dispatch('player/playTrackList', {
index,
tracks: this.items
})
},
}
})