Skip to content

Commit

Permalink
show new actions added without page refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Jun 17, 2023
1 parent ff8e827 commit 79f0a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/data_resources/components/actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default {
},
permittedActions () {
return (this.actions || this.model.actions).filter((action) => {
return action.apply_on === 'member' && action.visible && this.resources.some((res) => {
return (!action.apply_on || action.apply_on === 'member') && action.visible && this.resources.some((res) => {
return this.$can(action.name, this.model.class_name, res)
})
})
Expand Down

0 comments on commit 79f0a3b

Please sign in to comment.