What you were expecting:
Being able to override the DeleteButton showing in the toolbar based on permissions.
What happened instead:
The DeleteButton is hardcoded into the toolbar after the span, there is no way to remove or conditionally display it.
Steps to reproduce:
Spin up any edit page that has a resource ID and note that the DeleteButton is on the lower right. Attempting to make your own custom toolbar with conditional logic to display the buttons will not override the hardcoded DeleteButton that comes with it.
Related code:
Toolbar.js Lines 94-100
What you were expecting:
Being able to override the DeleteButton showing in the toolbar based on permissions.
What happened instead:
The DeleteButton is hardcoded into the toolbar after the span, there is no way to remove or conditionally display it.
Steps to reproduce:
Spin up any edit page that has a resource ID and note that the DeleteButton is on the lower right. Attempting to make your own custom toolbar with conditional logic to display the buttons will not override the hardcoded DeleteButton that comes with it.
Related code:
Toolbar.js Lines 94-100