mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 22:57:16 +02:00
Fix:Show play button playing on local and non-local item pages #487
This commit is contained in:
+2
-1
@@ -299,7 +299,7 @@ export default {
|
|||||||
},
|
},
|
||||||
userTimeRemaining() {
|
userTimeRemaining() {
|
||||||
if (!this.userItemProgress) return 0
|
if (!this.userItemProgress) return 0
|
||||||
var duration = this.userItemProgress.duration || this.duration
|
const duration = this.userItemProgress.duration || this.duration
|
||||||
return duration - this.userItemProgress.currentTime
|
return duration - this.userItemProgress.currentTime
|
||||||
},
|
},
|
||||||
progressPercent() {
|
progressPercent() {
|
||||||
@@ -315,6 +315,7 @@ export default {
|
|||||||
return this.isPlaying && !this.$store.state.playerIsLocal
|
return this.isPlaying && !this.$store.state.playerIsLocal
|
||||||
},
|
},
|
||||||
isPlaying() {
|
isPlaying() {
|
||||||
|
if (this.localLibraryItemId && this.$store.getters['getIsItemStreaming'](this.localLibraryItemId)) return true
|
||||||
return this.$store.getters['getIsItemStreaming'](this.libraryItemId)
|
return this.$store.getters['getIsItemStreaming'](this.libraryItemId)
|
||||||
},
|
},
|
||||||
numTracks() {
|
numTracks() {
|
||||||
|
|||||||
Reference in New Issue
Block a user