[web-src] Fix missing pause-button for spotify songs

This commit is contained in:
chme 2019-06-15 13:26:18 +02:00
parent 9b90e0d376
commit eaea9bd4f8

View File

@ -18,10 +18,9 @@ export default {
},
is_pause_allowed () {
return this.$store.getters.now_playing &&
(this.$store.getters.now_playing.data_kind === 'file' ||
((this.$store.getters.now_playing.data_kind === 'url' && this.$store.state.player.item_length_ms !== 0) && this.$store.getters.now_playing.data_kind !== 'pipe')
)
return (this.$store.getters.now_playing &&
!(this.$store.getters.now_playing.data_kind === 'url' && this.$store.state.player.item_length_ms <= 0) &&
this.$store.getters.now_playing.data_kind !== 'pipe')
}
},