From 2032dd88baa6c22274c1191ee64383a3160b1656 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 27 Nov 2022 14:16:22 -0600 Subject: [PATCH] Hide add to playlist buttons for ebooks --- client/components/cards/LazyBookCard.vue | 10 ++++++---- client/pages/item/_id/index.vue | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index f29617fe..6780c338 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -452,10 +452,12 @@ export default { text: this.$strings.LabelAddToCollection }) } - items.push({ - func: 'openPlaylists', - text: this.$strings.LabelAddToPlaylist - }) + if (this.numTracks) { + items.push({ + func: 'openPlaylists', + text: this.$strings.LabelAddToPlaylist + }) + } } if (this.userCanUpdate) { items.push({ diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue index 7ff3ce64..eb9c1127 100644 --- a/client/pages/item/_id/index.vue +++ b/client/pages/item/_id/index.vue @@ -158,7 +158,7 @@ - +