environments/review-front-deve-otr6gc/deployments/13401
wvffle 2022-07-04 00:02:00 +00:00 zatwierdzone przez Georg Krause
rodzic 57692dcf6a
commit 7d8d1a414d
1 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -52,11 +52,14 @@ const playTrack = async (track: Track, oldTrack?: Track) => {
currentSound.value = loadSound(track)
// TODO (wvffle): #1777
if (playing.value) {
currentSound.value.play()
store.commit('player/isLoadingAudio', true)
store.commit('player/errored', false)
store.commit('player/playing', true)
} else {
store.commit('player/isLoadingAudio', false)
}
store.commit('player/errored', false)
store.dispatch('player/updateProgress', 0)
}
}