Fix:Bookmarks for downloaded books linked to server #163

This commit is contained in:
advplyr 2022-12-11 11:09:50 -06:00
parent 69996a4346
commit 067c2f84dd
2 changed files with 14 additions and 42 deletions

View file

@ -46,7 +46,7 @@
<div id="playerContent" class="playerContainer w-full z-20 bg-primary absolute bottom-0 left-0 right-0 p-2 pointer-events-auto transition-all" @click="clickContainer">
<div v-if="showFullscreen" class="absolute top-0 left-0 right-0 w-full py-3 mx-auto px-3" style="max-width: 380px">
<div class="flex items-center justify-between pointer-events-auto">
<span v-if="!isPodcast && !isLocalPlayMethod" class="material-icons text-3xl text-white text-opacity-75 cursor-pointer" @click="$emit('showBookmarks')">{{ bookmarks.length ? 'bookmark' : 'bookmark_border' }}</span>
<span v-if="!isPodcast && isServerItem && networkConnected" class="material-icons text-3xl text-white text-opacity-75 cursor-pointer" @click="$emit('showBookmarks')">{{ bookmarks.length ? 'bookmark' : 'bookmark_border' }}</span>
<!-- hidden for podcasts but still using this as a placeholder -->
<span v-else class="material-icons text-3xl text-white text-opacity-0">bookmark</span>
@ -126,7 +126,8 @@ export default {
default: () => []
},
sleepTimerRunning: Boolean,
sleepTimeRemaining: Number
sleepTimeRemaining: Number,
isServerItem: Boolean
},
data() {
return {
@ -324,6 +325,9 @@ export default {
} else {
return secondsRemaining + 's'
}
},
networkConnected() {
return this.$store.state.networkConnected
}
},
methods: {