mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-23 12:05:47 -04:00
[web-src] Fix missing pause-button for spotify songs
This commit is contained in:
parent
9b90e0d376
commit
eaea9bd4f8
@ -18,10 +18,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
is_pause_allowed () {
|
is_pause_allowed () {
|
||||||
return this.$store.getters.now_playing &&
|
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 === 'url' && this.$store.state.player.item_length_ms !== 0) && this.$store.getters.now_playing.data_kind !== 'pipe')
|
this.$store.getters.now_playing.data_kind !== 'pipe')
|
||||||
)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user