From 17c0c646077ee7851823b69f398e0fbe5255e2d1 Mon Sep 17 00:00:00 2001 From: Maaz Hassan Date: Fri, 29 Dec 2023 12:09:43 +0000 Subject: [PATCH] Add: "Play Next" button for book item page --- client/pages/item/_id/index.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index 8658a6e42..b033fd42d 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -97,6 +97,10 @@ + + + + auto_stories {{ $strings.ButtonRead }} @@ -677,6 +681,19 @@ export default { this.$store.commit('addItemToQueue', queueItem) } }, + playNextBtnClick() { + const queueItem = { + libraryItemId: this.libraryItemId, + libraryId: this.libraryId, + episodeId: null, + title: this.title, + subtitle: this.authors.map((au) => au.name).join(', '), + caption: '', + duration: this.duration || null, + coverPath: this.media.coverPath || null + } + this.$store.commit('addItemToTopOfQueue', queueItem) + }, downloadLibraryItem() { this.$downloadFile(this.downloadUrl) },