From 6d61b2acaf3422dc279b231f752610f37f60cedd Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 11 Sep 2023 17:08:15 -0500 Subject: [PATCH] Fix:Switch to library of item when clicking on title of fullscreen audio player #803 --- components/app/AudioPlayer.vue | 6 +++--- components/app/AudioPlayerContainer.vue | 2 +- pages/item/_id/index.vue | 12 +++++++++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index bc70aa16..0d0aef2c 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -48,7 +48,7 @@
- {{ bookmarks.length ? 'bookmark' : 'bookmark_border' }} + {{ bookmarks.length ? 'bookmark' : 'bookmark_border' }} bookmark @@ -115,7 +115,7 @@ export default { }, sleepTimerRunning: Boolean, sleepTimeRemaining: Number, - isServerItem: Boolean + serverLibraryItemId: String }, data() { return { @@ -391,7 +391,7 @@ export default { }, clickTitleAndAuthor() { if (!this.showFullscreen) return - const llid = this.libraryItem ? this.libraryItem.id : this.localLibraryItem ? this.localLibraryItem.id : null + const llid = this.serverLibraryItemId || this.libraryItem?.id || this.localLibraryItem?.id if (llid) { this.$router.push(`/item/${llid}`) this.showFullscreen = false diff --git a/components/app/AudioPlayerContainer.vue b/components/app/AudioPlayerContainer.vue index 623b72ed..29fff400 100644 --- a/components/app/AudioPlayerContainer.vue +++ b/components/app/AudioPlayerContainer.vue @@ -1,6 +1,6 @@