fix radio table

This commit is contained in:
Thomas Amland
2021-01-24 12:24:16 +01:00
parent c49eb98efb
commit 383334cfe5
2 changed files with 19 additions and 4 deletions
+3
View File
@@ -188,6 +188,9 @@ export const playerModule: Module<State, any> = {
trackId(state, getters): number {
return getters.track ? getters.track.id : -1
},
isPlaying(state): boolean {
return state.isPlaying
},
progress(state) {
if (state.currentTime > -1 && state.duration > 0) {
return (state.currentTime / state.duration) * 100