mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +02:00
Extract leftover core strings
Adds app.trans calls for a couple strings in core: - The "there are no discussions" message in DiscussionList.js - The user deletion confirmation message in UserControls.js - Also adds new HTML-style tags to LogInModal.js and SignUpModal.js
This commit is contained in:
@@ -95,7 +95,7 @@ export default {
|
||||
* Delete the user.
|
||||
*/
|
||||
deleteAction() {
|
||||
if (confirm('Are you sure you want to delete this user? All of the user\'s posts will be deleted.')) {
|
||||
if (confirm(app.trans('core.admin.user_controls_delete_confirmation'))) {
|
||||
this.delete().then(() => {
|
||||
if (app.current instanceof UserPage && app.current.user === this) {
|
||||
app.history.back();
|
||||
|
Reference in New Issue
Block a user