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: { computed: {
contextMenuItems() { contextMenuItems() {
if (!this.userIsAdminOrUp) return [] const menuItems = []
return [ if (this.userIsAdminOrUp) {
{ menuItems.push({
text: 'Quick match all episodes', text: 'Quick match all episodes',
action: 'quick-match-episodes' action: 'quick-match-episodes'
}, })
{ }
text: this.allEpisodesFinished ? this.$strings.MessageMarkAllEpisodesNotFinished : this.$strings.MessageMarkAllEpisodesFinished, menuItems.push({
action: 'batch-mark-as-finished' text: this.allEpisodesFinished ? this.$strings.MessageMarkAllEpisodesNotFinished : this.$strings.MessageMarkAllEpisodesFinished,
} action: 'batch-mark-as-finished'
] })
return menuItems
}, },
sortItems() { sortItems() {
return [ return [