Removing the 'New' Button #775
Unanswered
Tal-Shavit
asked this question in
Q&A
Replies: 1 comment
-
Hey, you can use the # in your live resource
@impl Backpex.LiveResource
def can?(_assigns, :new, _item) do
false
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I noticed an issue with the 'New' button. When I configure all fields with only options that exclude :new (e.g., only: [:index, :show]) or even use except: [:new], the "New" button still appears in the UI.
This seems unexpected, as no field explicitly includes the :new action. Is there a way to remove the "New" button?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions