diff --git a/framework/core/js/src/forum/utils/UserControls.js b/framework/core/js/src/forum/utils/UserControls.js index 0e59ce834..1f190db2d 100644 --- a/framework/core/js/src/forum/utils/UserControls.js +++ b/framework/core/js/src/forum/utils/UserControls.js @@ -112,11 +112,15 @@ export default { showDeletionAlert(type) { const { username, email } = this.data.attributes; + const message = { + success: 'core.forum.user_controls.delete_success_message', + error: 'core.forum.user_controls.delete_error_message', + }[type]; app.alerts.show(new Alert({ type, children: app.translator.trans( - `core.forum.user.delete_alert_${type}`, { username, email } + message, { username, email } ) })); },