I'm trying to create a custom action with the type 'route'. But I want to display a confirmation modal before doing the request. For example, in the list view, I want to have the actions: edit, view and publish. But when the user presses publish, I want a confirmation modal.
This behavior already occurs with the delete action, but I can't seem to understand how to replicate it to a custom action.
Any ideas?
Thank you