From 84509ec1a8423c2288ba0b8047f2315d83492293 Mon Sep 17 00:00:00 2001
From: ISO-B <3048685+ISO-B@users.noreply.github.com>
Date: Sat, 27 Jul 2024 23:26:57 +0300
Subject: [PATCH] Added ability to download whole serie from serie view
---
components/home/BookshelfToolbar.vue | 8 ++
pages/bookshelf/series/_id.vue | 173 ++++++++++++++++++++++++++-
strings/en-us.json | 1 +
3 files changed, 176 insertions(+), 6 deletions(-)
diff --git a/components/home/BookshelfToolbar.vue b/components/home/BookshelfToolbar.vue
index 3f045efb..59c971fe 100644
--- a/components/home/BookshelfToolbar.vue
+++ b/components/home/BookshelfToolbar.vue
@@ -95,6 +95,11 @@ export default {
text: this.$strings.LabelCollapseSeries,
value: 'collapse_subseries',
icon: this.settings.collapseBookSeries ? 'check_box' : 'check_box_outline_blank'
+ },
+ {
+ text: this.$strings.LabelDownloadSerie,
+ value: 'download_serie',
+ icon: 'download'
}
]
} else {
@@ -117,6 +122,9 @@ export default {
} else if (action === 'collapse_subseries') {
this.settings.collapseBookSeries = !this.settings.collapseBookSeries
this.saveSettings()
+ } else if (action === 'download_serie') {
+ console.log('Download Serie click')
+ this.$eventBus.$emit('download-serie-click')
}
},
updateOrder() {
diff --git a/pages/bookshelf/series/_id.vue b/pages/bookshelf/series/_id.vue
index 27b0e018..7e7edd8b 100644
--- a/pages/bookshelf/series/_id.vue
+++ b/pages/bookshelf/series/_id.vue
@@ -1,8 +1,12 @@
-
+
\ No newline at end of file
+
diff --git a/strings/en-us.json b/strings/en-us.json
index 24fb35ef..c865bf4f 100644
--- a/strings/en-us.json
+++ b/strings/en-us.json
@@ -123,6 +123,7 @@
"LabelDisableVibrateOnResetHelp": "When the sleep timer gets reset your device will vibrate. Enable this setting to not vibrate when the sleep timer resets.",
"LabelDiscover": "Discover",
"LabelDownload": "Download",
+ "LabelDownloadSerie": "Download serie",
"LabelDownloadUsingCellular": "Download using Cellular",
"LabelDownloaded": "Downloaded",
"LabelDuration": "Duration",