From 733dfd85a54f893c736e97f0b4b6b37aa0b156d0 Mon Sep 17 00:00:00 2001 From: Greg Lorenzen Date: Sun, 1 Dec 2024 01:53:05 +0000 Subject: [PATCH] Add isDownloadable to ShareModal create MediaItemShare payload --- client/components/modals/ShareModal.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/components/modals/ShareModal.vue b/client/components/modals/ShareModal.vue index acfef3571..2009c41d6 100644 --- a/client/components/modals/ShareModal.vue +++ b/client/components/modals/ShareModal.vue @@ -182,7 +182,8 @@ export default { slug: this.newShareSlug, mediaItemType: 'book', mediaItemId: this.libraryItem.media.id, - expiresAt: this.expireDurationSeconds ? Date.now() + this.expireDurationSeconds * 1000 : 0 + expiresAt: this.expireDurationSeconds ? Date.now() + this.expireDurationSeconds * 1000 : 0, + isDownloadable: this.isDownloadable } this.processing = true this.$axios