Fix:Podcast episode batch mark as finished only showing for admin and up #3496

This commit is contained in:
advplyr 2024-10-10 08:03:16 -05:00
parent a6da32430f
commit d258b42e01

View File

@ -93,17 +93,18 @@ export default {
},
computed: {
contextMenuItems() {
if (!this.userIsAdminOrUp) return []
return [
{
const menuItems = []
if (this.userIsAdminOrUp) {
menuItems.push({
text: 'Quick match all episodes',
action: 'quick-match-episodes'
},
{
text: this.allEpisodesFinished ? this.$strings.MessageMarkAllEpisodesNotFinished : this.$strings.MessageMarkAllEpisodesFinished,
action: 'batch-mark-as-finished'
}
]
})
}
menuItems.push({
text: this.allEpisodesFinished ? this.$strings.MessageMarkAllEpisodesNotFinished : this.$strings.MessageMarkAllEpisodesFinished,
action: 'batch-mark-as-finished'
})
return menuItems
},
sortItems() {
return [