Fixed #151: queue reorder or track deletion restarting currently playing track

This commit is contained in:
Eliot Berriot 2018-04-23 18:32:27 +02:00
parent 48c9a8bd55
commit 6ed6634f93
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 15 additions and 9 deletions

View file

@ -86,9 +86,15 @@ export default {
}
},
updateDuration: function (e) {
if (!this.$refs.audio) {
return
}
this.$store.commit('player/duration', this.$refs.audio.duration)
},
loaded: function () {
if (!this.$refs.audio) {
return
}
this.$refs.audio.volume = this.volume
this.$store.commit('player/resetErrorCount')
if (this.isCurrent) {