UX: clearer delete user action buttons

This commit is contained in:
Jeff Atwood 2015-09-30 16:06:55 -07:00
parent 25cb19eeca
commit 0b295150e7

View File

@ -387,16 +387,16 @@ const AdminUser = Discourse.User.extend({
const buttons = [{
"label": I18n.t("composer.cancel"),
"class": "cancel",
"link": true
}, {
"label": I18n.t('admin.user.delete_dont_block'),
"class": "btn",
"callback": function(){ performDestroy(false); }
"link": true
}, {
"label": '<i class="fa fa-exclamation-triangle"></i>' + I18n.t('admin.user.delete_and_block'),
"class": "btn btn-danger",
"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" });