mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
UX: clearer delete user action buttons
This commit is contained in:
parent
25cb19eeca
commit
0b295150e7
1 changed files with 5 additions and 5 deletions
|
@ -387,16 +387,16 @@ const AdminUser = Discourse.User.extend({
|
||||||
|
|
||||||
const buttons = [{
|
const buttons = [{
|
||||||
"label": I18n.t("composer.cancel"),
|
"label": I18n.t("composer.cancel"),
|
||||||
"class": "cancel",
|
|
||||||
"link": true
|
|
||||||
}, {
|
|
||||||
"label": I18n.t('admin.user.delete_dont_block'),
|
|
||||||
"class": "btn",
|
"class": "btn",
|
||||||
"callback": function(){ performDestroy(false); }
|
"link": true
|
||||||
}, {
|
}, {
|
||||||
"label": '<i class="fa fa-exclamation-triangle"></i>' + I18n.t('admin.user.delete_and_block'),
|
"label": '<i class="fa fa-exclamation-triangle"></i>' + I18n.t('admin.user.delete_and_block'),
|
||||||
"class": "btn btn-danger",
|
"class": "btn btn-danger",
|
||||||
"callback": function(){ performDestroy(true); }
|
"callback": function(){ performDestroy(true); }
|
||||||
|
}, {
|
||||||
|
"label": I18n.t('admin.user.delete_dont_block'),
|
||||||
|
"class": "btn btn-primary",
|
||||||
|
"callback": function(){ performDestroy(false); }
|
||||||
}];
|
}];
|
||||||
|
|
||||||
bootbox.dialog(message, buttons, { "classes": "delete-user-modal" });
|
bootbox.dialog(message, buttons, { "classes": "delete-user-modal" });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue