From cb0faa871efecacc25ded7c2b0a0b983ca2b69ae Mon Sep 17 00:00:00 2001
From: VaiTon
Date: Sat, 29 Apr 2023 17:36:34 +0200
Subject: Enable update for already created rules
---
frontend/src/components/panels/RulesPane.js | 36 +++++++++++++++++++++--------
1 file changed, 26 insertions(+), 10 deletions(-)
diff --git a/frontend/src/components/panels/RulesPane.js b/frontend/src/components/panels/RulesPane.js
index 771c764..eb424c7 100644
--- a/frontend/src/components/panels/RulesPane.js
+++ b/frontend/src/components/panels/RulesPane.js
@@ -322,8 +322,15 @@ class RulesPane extends Component {
{p["min_occurrences"]} |
{p["max_occurrences"]} |
{this.directions[p.direction]} |
- {!isUpdate && this.editPattern(p)} /> | }
+
+ this.editPattern(p)}
+ />
+ |
);
@@ -382,16 +389,25 @@ class RulesPane extends Component {
filters:
- this.updateParam((r) => r.filter["service_port"] = v)}
- min={0} max={65565} error={this.state.ruleServicePortError}
- readonly={isUpdate} />
-
+ this.updateParam((r) => r.filter["client_port"] = v)}
- min={0} max={65565} error={this.state.ruleClientPortError}
- readonly={isUpdate} />
-
+ this.updateParam((r) => r.filter["client_address"] = v)} />
--
cgit v1.2.3-70-g09d2