Flask-admin: Delete confirmation no longer shows in list view

Created on 14 Jan 2019  路  6Comments  路  Source: flask-admin/flask-admin

With version 1.5.2 clicking the trash-icon in the list-view to delete a record would show a confirmation dialog. This no longer happens in version 1.5.3.

I fixed it locally by adding the "safeConfirm" Javascript code back into templates/admin/model/list.html that was deleted with this commit:
https://github.com/flask-admin/flask-admin/pull/1521/commits/b94874f2efacb8c0cb718df2a8549712305c1d0a

Most helpful comment

Could we release this change?

All 6 comments

Could we release this change?

Any update on getting a new release with these changes?

Any news on releasing these changes?

wheeeeeeeeee

This is still not working and we are using 1.5.6, do i need to add any code to activate this, or is the confirmation box the default action for clicking delete (trash_can)

@ozamani9

This is still not working and we are using 1.5.6, do i need to add any code to activate this, or is the confirmation box the default action for clicking delete (trash_can)

If you have overridden templates, check "safeConfirm" JS function usage, now it is "faHelpers.safeConfirm"

Was this page helpful?
0 / 5 - 0 ratings