From 3b7db82bf0e2ff6679643589a8b4489655299cc3 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 18 Mar 2025 17:33:46 -0500 Subject: [PATCH] Update bulk download to not open in new tab --- client/components/app/Appbar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index 6fd2bc3e..d40794c3 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -182,7 +182,7 @@ export default { // The limit of 50 is introduced because of the URL length. Each id has 36 chars, so 36 * 40 = 1440 // + 40 , separators = 1480 chars + base path 280 chars = 1760 chars. This keeps the URL under 2000 chars even with longer domains - if(this.selectedMediaItems.length <= 40) { + if (this.selectedMediaItems.length <= 40) { options.push({ text: this.$strings.LabelDownload, action: 'download' @@ -255,7 +255,7 @@ export default { async batchDownload() { const libraryItemIds = this.selectedMediaItems.map((i) => i.id) console.log('Downloading library items', libraryItemIds) - this.$downloadFile(`/api/libraries/${this.$store.state.libraries.currentLibraryId}/download?token=${this.$store.getters['user/getToken']}&ids=${libraryItemIds.join(',')}`, null, true) + this.$downloadFile(`/api/libraries/${this.$store.state.libraries.currentLibraryId}/download?token=${this.$store.getters['user/getToken']}&ids=${libraryItemIds.join(',')}`) }, async playSelectedItems() { this.$store.commit('setProcessingBatch', true)