Hide add to playlist buttons for ebooks

This commit is contained in:
advplyr 2022-11-27 14:16:22 -06:00
parent b11b1be432
commit 2032dd88ba
2 changed files with 7 additions and 5 deletions

View File

@ -452,10 +452,12 @@ export default {
text: this.$strings.LabelAddToCollection text: this.$strings.LabelAddToCollection
}) })
} }
items.push({ if (this.numTracks) {
func: 'openPlaylists', items.push({
text: this.$strings.LabelAddToPlaylist func: 'openPlaylists',
}) text: this.$strings.LabelAddToPlaylist
})
}
} }
if (this.userCanUpdate) { if (this.userCanUpdate) {
items.push({ items.push({

View File

@ -158,7 +158,7 @@
<ui-icon-btn icon="collections_bookmark" class="mx-0.5" outlined @click="collectionsClick" /> <ui-icon-btn icon="collections_bookmark" class="mx-0.5" outlined @click="collectionsClick" />
</ui-tooltip> </ui-tooltip>
<ui-tooltip v-if="!isPodcast" :text="$strings.LabelYourPlaylists" direction="top"> <ui-tooltip v-if="!isPodcast && tracks.length" :text="$strings.LabelYourPlaylists" direction="top">
<ui-icon-btn icon="playlist_add" class="mx-0.5" outlined @click="playlistsClick" /> <ui-icon-btn icon="playlist_add" class="mx-0.5" outlined @click="playlistsClick" />
</ui-tooltip> </ui-tooltip>