mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
UX: add confirm dialog when rolling up IP ban entries
This commit is contained in:
parent
d3d517108d
commit
2c38f969cc
2 changed files with 8 additions and 3 deletions
|
@ -18,10 +18,14 @@ export default Ember.ArrayController.extend(Discourse.Presence, {
|
|||
|
||||
rollUp: function() {
|
||||
var self = this;
|
||||
this.set("loading", true)
|
||||
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");
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue