cmer/ultimate_turbo_modal-rails

Support for Turbo confirm?

Opened this issue · 0 comments

This seems awesome! The one case that seems to be missing is Turbo confirm modals. As this is an "ultimate turbo modal" library, it would be great to also support Turbo confirms. The main case I'm thinking of is a delete button so this would seemingly combine the use case where the server side closes the modal. Is there a way to hook into the existing code to show a standardized "Are you sure?" modal? Ideally, we can specify data attributes for the modal to customize the copy or behavior on a case by case basis.