Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no way do not show delete button for the Toolbar in v.2.3.3 #2396

Closed
Gorett opened this issue Oct 5, 2018 · 2 comments
Closed

There is no way do not show delete button for the Toolbar in v.2.3.3 #2396

Gorett opened this issue Oct 5, 2018 · 2 comments

Comments

@Gorett
Copy link

Gorett commented Oct 5, 2018

Please do not submit support requests or "How to" questions here. For that, go to StackOverflow.

What you were expecting:
Ability to hide delete button for the Toolbar component.
What happened instead:
It's impossible.

Steps to reproduce:
Try to remove or hide 'delete' button for Edit view.

Related code:
Toolbar.js:80
record && typeof record.id !== 'undefined' && React.createElement(DeleteButton, {
basePath: basePath,
record: record,
resource: resource
})

insert short code snippets here

Other information:

Environment

  • React-admin version: 2.3.3
  • Last version that did not exhibit the issue (if applicable): 2.0.3
  • React version: 16.3.1
  • Browser: any
  • Stack trace (in case of a JS error): Toolbar component misbehavior
@kctrlv
Copy link

kctrlv commented Oct 10, 2018

@AChuyan

I submitted a similar issue a while back and it looks like the fix is set to be released in the next major version:

#2340

@fzaninotto
Copy link
Member

indeed, it's a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants