From 8e9fb65db5a7b0554a7a19a8d157c11fdd6925ef Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 20 Oct 2024 02:51:26 +0200 Subject: [PATCH] [#414] Support for Jellyfin book items [frontend]. --- .../src/components/panels/Media/Item.vue | 2 +- .../components/panels/Media/MediaImage.vue | 20 ++++++++++++++++--- .../Media/Providers/Jellyfin/Collections.vue | 4 ++-- .../Providers/Jellyfin/views/Media/Index.vue | 14 +++++++++++-- 4 files changed, 32 insertions(+), 8 deletions(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Media/Item.vue b/platypush/backend/http/webapp/src/components/panels/Media/Item.vue index 55eade1123..7673efc809 100644 --- a/platypush/backend/http/webapp/src/components/panels/Media/Item.vue +++ b/platypush/backend/http/webapp/src/components/panels/Media/Item.vue @@ -135,7 +135,7 @@ export default { actions() { const actions = [] - if (this.item.type !== 'torrent' && this.item.item_type !== 'photo') { + if (!['book', 'photo', 'torrent'].includes(this.item.item_type)) { actions.push({ iconClass: 'fa fa-play', text: 'Play', diff --git a/platypush/backend/http/webapp/src/components/panels/Media/MediaImage.vue b/platypush/backend/http/webapp/src/components/panels/Media/MediaImage.vue index 9f287b0351..6d8d68a858 100644 --- a/platypush/backend/http/webapp/src/components/panels/Media/MediaImage.vue +++ b/platypush/backend/http/webapp/src/components/panels/Media/MediaImage.vue @@ -1,7 +1,8 @@