From 3fcef9c66e66411cfbbff2a8d49a2fa71546853d Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sun, 3 Jun 2018 22:36:57 -0400 Subject: [PATCH] Moved "Regex" from common namespace to location Also fixed Whitelist's note about wildcards. I plan on making it possible to whitelist a domain even if it falls under a regex, so I don't want to change the string if I don't have to. Signed-off-by: Mcat12 --- public/i18n/en/common.json | 3 +-- public/i18n/en/location.json | 3 ++- src/views/Login.js | 2 +- src/views/Whitelist.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/i18n/en/common.json b/public/i18n/en/common.json index ad505ce..21f2105 100644 --- a/public/i18n/en/common.json +++ b/public/i18n/en/common.json @@ -11,6 +11,5 @@ "Type": "Type", "Action": "Action", "Enabled": "Enabled", - "Disabled": "Disabled", - "Regex": "Regex" + "Disabled": "Disabled" } \ No newline at end of file diff --git a/public/i18n/en/location.json b/public/i18n/en/location.json index 4c9eaf0..d868287 100644 --- a/public/i18n/en/location.json +++ b/public/i18n/en/location.json @@ -6,5 +6,6 @@ "Exact": "Exact", "Wildcard": "Wildcard", "Login": "Login", - "Logout": "Logout" + "Logout": "Logout", + "Regex": "Regex" } \ No newline at end of file diff --git a/src/views/Login.js b/src/views/Login.js index d8655b7..2ff12a1 100644 --- a/src/views/Login.js +++ b/src/views/Login.js @@ -158,4 +158,4 @@ class Login extends Component { } } -export default translate(["common", "login"])(Login); \ No newline at end of file +export default translate(["login", "location"])(Login); \ No newline at end of file diff --git a/src/views/Whitelist.js b/src/views/Whitelist.js index 41a5b2e..ba0a786 100644 --- a/src/views/Whitelist.js +++ b/src/views/Whitelist.js @@ -19,7 +19,7 @@ const Whitelist = props => { return ( {t("Note: Whitelisting a subdomain of a regex blocked domain is not possible.")}

} + note={

{t("Note: Whitelisting a subdomain of a wildcard blocked domain is not possible.")}

} placeholder={t("Add a domain (example.com or sub.example.com)")} add={api.addWhitelist} remove={api.removeWhitelist}