From 463c833d57206d99896ade90c621748700e3c8c5 Mon Sep 17 00:00:00 2001 From: Love98 Date: Mon, 5 Aug 2024 19:25:52 +0800 Subject: [PATCH] feat: allow custom reason for WAF rule --- web/src/RuleEditPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/RuleEditPage.js b/web/src/RuleEditPage.js index 765c641..1447428 100644 --- a/web/src/RuleEditPage.js +++ b/web/src/RuleEditPage.js @@ -157,7 +157,7 @@ class RuleEditPage extends React.Component { ) } { - this.state.rule.action === "Block" && this.state.rule.type !== "WAF" && ( + (this.state.rule.action === "Block" && this.state.rule.type !== "WAF") && ( {i18next.t("rule:Status Code")}: @@ -172,7 +172,7 @@ class RuleEditPage extends React.Component { ) } { - this.state.rule.action === "Block" && this.state.rule.type !== "WAF" && ( + (this.state.rule.action === "Block" || this.state.rule.type === "WAF") && ( {i18next.t("rule:Reason")}: