diff --git a/app/assets/javascripts/admin/controllers/admin-logs-screened-ip-addresses.js.es6 b/app/assets/javascripts/admin/controllers/admin-logs-screened-ip-addresses.js.es6 index f6adb5b9413..03f2d4bdb3b 100644 --- a/app/assets/javascripts/admin/controllers/admin-logs-screened-ip-addresses.js.es6 +++ b/app/assets/javascripts/admin/controllers/admin-logs-screened-ip-addresses.js.es6 @@ -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"); + }); + } }); } } diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 4e4ef72b085..e3f108426bd 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1862,6 +1862,7 @@ en: title: "Screened IPs" description: 'IP addresses that are being watched. Use "Allow" to whitelist IP addresses.' delete_confirm: "Are you sure you want to remove the rule for %{ip_address}?" + roll_up_confirm: "Are you sure you want to roll up ban entries?" actions: block: "Block" do_nothing: "Allow"