flarum / issue-archive

0 stars 0 forks source link

Transform deleting user alert into modal with extendable details #221

Open dsevillamartin opened 4 years ago

dsevillamartin commented 4 years ago

Currently, when deleting a user, we use a JavaScript alert() and simply mention that the posts won't be deleted (https://github.com/flarum/lang-english/pull/157).

We will want to transform this alert to a JS Modal that is easily extensible to allow extensions to add their own info about what of their data will be deleted and/or kept when deleting a user.

E.g. Moderation notes (fof/moderator-notes) are deleted when the user they are for is deleted, but the notes that a deleted user created are kept. The extension would add this info to the Modal that appears when a user is deleted.