Fix #150: Player is back in Queue tab

This commit is contained in:
Eliot Berriot 2018-04-23 19:05:48 +02:00
parent 0e153c0f4d
commit 1a34f44898
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 14 additions and 5 deletions

View file

@ -173,11 +173,21 @@ export default {
...mapActions({
togglePlay: 'player/togglePlay',
clean: 'queue/clean',
next: 'queue/next',
previous: 'queue/previous',
shuffle: 'queue/shuffle',
updateProgress: 'player/updateProgress'
}),
next () {
let self = this
this.$store.dispatch('queue/next').then(() => {
self.$emit('next')
})
},
previous () {
let self = this
this.$store.dispatch('queue/previous').then(() => {
self.$emit('previous')
})
},
touchProgress (e) {
let time
let target = this.$refs.progress