mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: use allowlist and blocklist terminology (#10209)
This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.
This commit is contained in:

committed by
GitHub

parent
5077cf52fd
commit
e0d9232259
@ -3,7 +3,7 @@ import discourseComputed from "discourse-common/utils/decorators";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import Component from "@ember/component";
|
||||
/**
|
||||
A form to create an IP address that will be blocked or whitelisted.
|
||||
A form to create an IP address that will be blocked or allowed.
|
||||
Example usage:
|
||||
|
||||
{{screened-ip-address-form action=(action "recordAdded")}}
|
||||
@ -21,9 +21,9 @@ export default Component.extend({
|
||||
formSubmitted: false,
|
||||
actionName: "block",
|
||||
|
||||
@discourseComputed("siteSettings.use_admin_ip_whitelist")
|
||||
actionNames(adminWhitelistEnabled) {
|
||||
if (adminWhitelistEnabled) {
|
||||
@discourseComputed("siteSettings.use_admin_ip_allowlist")
|
||||
actionNames(adminAllowlistEnabled) {
|
||||
if (adminAllowlistEnabled) {
|
||||
return [
|
||||
{ id: "block", name: I18n.t("admin.logs.screened_ips.actions.block") },
|
||||
{
|
||||
|
Reference in New Issue
Block a user