From eaea9bd4f8f59749f57d7e5f2ab1e57611432eb1 Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 15 Jun 2019 13:26:18 +0200 Subject: [PATCH] [web-src] Fix missing pause-button for spotify songs --- web-src/src/components/PlayerButtonPlayPause.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web-src/src/components/PlayerButtonPlayPause.vue b/web-src/src/components/PlayerButtonPlayPause.vue index 5b95a5b8..f0937f7d 100644 --- a/web-src/src/components/PlayerButtonPlayPause.vue +++ b/web-src/src/components/PlayerButtonPlayPause.vue @@ -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') } },