-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
FEATURE: custom node deletion text #3294
FEATURE: custom node deletion text #3294
Conversation
In your first example for referenced nodes it wouldn't really help so much IMO, as the editor doesn't know if there is one. |
Perhaps the reference stuff was not the best example. |
Either way, it would be great to somehow have be possible to have a custom check. If you define the But when deleting lots of nodes this could quickly become a complicated dialog 😉 |
Configuration and Labels are adjusted (see updated PR description). I am not sure how to make the message translatable with i18n, is there any documentation or good example I could have a look at? |
You can use the
This should then already work with shorthand translation strings like this To allow the Would be great if you could implement the first part though. |
Markus asked me and I just realised that you used the On thing about this component is that in my opinion it creates a lot of React overhead and you already have the |
What I did
Sometimes when deleting a node Editors should be warned that they should look out for certain things.
For example, when using an nodetype as a reference, editors should be warned that they are potentially deleting an important element.
How I did it
To show a custom delete confirm message I added a new option for the ui: deleteConfirmation. This message will be shown in the Delete Popup
How to verify it
For any node type add deleteConfirmation in the ui section
TBD