Add:Playlists management

This commit is contained in:
advplyr
2022-12-03 17:05:43 -06:00
parent b62ce27487
commit ab9f7fed64
12 changed files with 376 additions and 64 deletions
+14 -2
View File
@@ -106,7 +106,7 @@
<p class="text-sm">{{ description }}</p>
</div>
<tables-podcast-episodes-table v-if="isPodcast" :library-item-id="libraryItemId" :local-library-item-id="localLibraryItemId" :episodes="episodes" :local-episodes="localLibraryItemEpisodes" :is-local="isLocal" />
<tables-podcast-episodes-table v-if="isPodcast" :library-item="libraryItem" :local-library-item-id="localLibraryItemId" :episodes="episodes" :local-episodes="localLibraryItemEpisodes" :is-local="isLocal" />
<modals-select-local-folder-modal v-model="showSelectLocalFolder" :media-type="mediaType" @select="selectedLocalFolder" />
@@ -343,12 +343,21 @@ export default {
}
]
} else {
return [
const items = [
{
text: 'View Details',
value: 'details'
}
]
if (!this.isPodcast) {
items.push({
text: 'Add to Playlist',
value: 'playlist'
})
}
return items
}
}
},
@@ -359,6 +368,9 @@ export default {
this.$router.push(`/localMedia/item/${this.libraryItemId}`)
} else if (action === 'details') {
this.showDetailsModal = true
} else if (action === 'playlist') {
this.$store.commit('globals/setSelectedPlaylistItems', [{ libraryItem: this.libraryItem, episode: null }])
this.$store.commit('globals/setShowPlaylistsAddCreateModal', true)
}
},
moreButtonPress() {
+1 -1
View File
@@ -86,7 +86,7 @@ export default {
return !prog || !prog.isFinished
})
if (nextItem) {
this.$eventBus.$emit('play-item', { libraryItemId: nextItem.libraryItemId })
this.$eventBus.$emit('play-item', { libraryItemId: nextItem.libraryItemId, episodeId: nextItem.episodeId })
}
}
},