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.
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.