mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
UX: add confirm dialog when rolling up IP ban entries
This commit is contained in:
@ -18,9 +18,13 @@ export default Ember.ArrayController.extend(Discourse.Presence, {
|
||||
|
||||
rollUp: function() {
|
||||
var self = this;
|
||||
this.set("loading", true)
|
||||
return Discourse.ScreenedIpAddress.rollUp().then(function() {
|
||||
self.send("show");
|
||||
return bootbox.confirm(I18n.t("admin.logs.screened_ips.roll_up_confirm"), I18n.t("no_value"), I18n.t("yes_value"), function (confirmed) {
|
||||
if (confirmed) {
|
||||
self.set("loading", true)
|
||||
return Discourse.ScreenedIpAddress.rollUp().then(function() {
|
||||
self.send("show");
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user