From e1f2136e7c211be7064ae7691b1cd9ea5f22da34 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 13 May 2023 22:13:44 +0200 Subject: [PATCH] Add Forward rule editType Matcher --- client/src/definitions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/definitions.ts b/client/src/definitions.ts index 4970f84..efb23b4 100644 --- a/client/src/definitions.ts +++ b/client/src/definitions.ts @@ -99,6 +99,9 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { { fields: [ { key: "name", label: "Name", as: "TextBox" }, + { key: "match.source_addresses", label: "Source", as: "MultiSelect", props: { searchProvider: GetAddresses } }, + { key: "match.destination_addresses", label: "Destination", as: "MultiSelect", props: { searchProvider: GetAddresses } }, + { key: "match.services", label: "Services", as: "MultiSelect", props: { searchProvider: GetServices } }, { key: "verdict", label: "Verdict", as: "PillBar", props: { options: { accept: { display: 'Accept' }, drop: { display: 'Drop' }, continue: { display: 'Continue' } } } }, { key: "counter", label: "Counter", as: "CheckBox" }, { key: "comment", label: "Comment", as: "MultilineTextBox" },