From 89041c4141f6dce63a3f5e36de1c5eeab7808b6d Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 8 Jan 2023 14:50:21 -0600 Subject: [PATCH] Fix:Show play button playing on local and non-local item pages #487 --- pages/item/_id.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/item/_id.vue b/pages/item/_id.vue index 2313ba41..3df842e5 100644 --- a/pages/item/_id.vue +++ b/pages/item/_id.vue @@ -299,7 +299,7 @@ export default { }, userTimeRemaining() { if (!this.userItemProgress) return 0 - var duration = this.userItemProgress.duration || this.duration + const duration = this.userItemProgress.duration || this.duration return duration - this.userItemProgress.currentTime }, progressPercent() { @@ -315,6 +315,7 @@ export default { return this.isPlaying && !this.$store.state.playerIsLocal }, isPlaying() { + if (this.localLibraryItemId && this.$store.getters['getIsItemStreaming'](this.localLibraryItemId)) return true return this.$store.getters['getIsItemStreaming'](this.libraryItemId) }, numTracks() {