Skip to content

Commit

Permalink
Fix:Podcast episode batch mark as finished only showing for admin and…
Browse files Browse the repository at this point in the history
… up #3496
  • Loading branch information
advplyr committed Oct 10, 2024
1 parent a6da324 commit d258b42
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions client/components/tables/podcast/LazyEpisodesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit d258b42

Please sign in to comment.