Merge branch '150-player-queue-tab' into 'develop'

Resolve "Include player buttons on the queue tab"

Closes #150

See merge request funkwhale/funkwhale!160
This commit is contained in:
Eliot Berriot 2018-04-23 17:08:13 +00:00
commit 9124c7a9bf
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