san-kumar/laravel-crud

No warning before deleting a record

Closed this issue · 2 comments

rabol commented

Hi

Not sure if this is a bug or a missing feature, but when you delete a record there is no warning before the delete

I think it's a missing feature. The delete button is hidden a drop-down so I decided not to add a confirmation. It should be easy to do that though. Just open the generate blade file and add the following to the delete link

<a href="..." ... onclick="return confirm('Are you sure?')">Delete</a>
rabol commented

Sorry, but I don't see any drop down when using Tailwind css