Skip to content

Commit

Permalink
feat: allow custom reason for WAF rule
Browse files Browse the repository at this point in the history
  • Loading branch information
love98ooo committed Aug 5, 2024
1 parent c626055 commit 463c833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/RuleEditPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") && (
<Row style={{marginTop: "20px"}}>
<Col span={2} style={{marginTop: "5px"}}>
{i18next.t("rule:Status Code")}:
Expand All @@ -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") && (
<Row style={{marginTop: "20px"}}>
<Col span={2} style={{marginTop: "5px"}}>
{i18next.t("rule:Reason")}:
Expand Down

0 comments on commit 463c833

Please sign in to comment.