From dc638d152974c7210330de6020bf9eea40e530e3 Mon Sep 17 00:00:00 2001 From: Manuel Abascal Date: Fri, 2 Feb 2024 23:51:02 +0200 Subject: [PATCH] Fixed Incident-response-automation-must-allow-to-run-in-default-agent (#396) --- .../ir-create-rule.component.html | 104 +++++++++++++++--- .../ir-create-rule.component.scss | 13 +++ .../ir-create-rule.component.ts | 19 +++- .../ir-summary/ir-summary.component.html | 57 ++++++++++ .../ir-summary/ir-summary.component.scss | 0 .../ir-summary/ir-summary.component.ts | 70 ++++++++++++ .../shared/incident-response-shared.module.ts | 8 +- .../shared/type/incident-rule.type.ts | 1 + .../util/utm-toggle/utm-toggle.component.html | 7 +- .../util/utm-toggle/utm-toggle.component.scss | 4 + .../util/utm-toggle/utm-toggle.component.ts | 1 + 11 files changed, 263 insertions(+), 21 deletions(-) create mode 100644 frontend/src/app/incident-response/shared/component/ir-summary/ir-summary.component.html create mode 100644 frontend/src/app/incident-response/shared/component/ir-summary/ir-summary.component.scss create mode 100644 frontend/src/app/incident-response/shared/component/ir-summary/ir-summary.component.ts diff --git a/frontend/src/app/incident-response/shared/component/ir-create-rule/ir-create-rule.component.html b/frontend/src/app/incident-response/shared/component/ir-create-rule/ir-create-rule.component.html index c040e7e95..8a0e774c3 100644 --- a/frontend/src/app/incident-response/shared/component/ir-create-rule/ir-create-rule.component.html +++ b/frontend/src/app/incident-response/shared/component/ir-create-rule/ir-create-rule.component.html @@ -1,38 +1,50 @@ -
-
+
+
- + Automation
- +
- + Trigger
- +
- + Action
- + +
+
+ +
+ + Summary + +
+
@@ -122,21 +134,22 @@ placement="left" (click)="removeRuleCondition(i)">
-
+
You must set at least one trigger condition
-
-
-
+
+
-
+ +
+
+
+ +
+
+
+
+ + + +
+
+
+ Info! + Represents agents where the commands won't run, even if the trigger conditions match +
+
+
+
+
+ + + +
+
+
+ Info! + Designates the agent to execute the automation when no other agent meets the criteria to serve as the runner for this automation. +
Warning! You may cause damage to the infrastructure and services of your organization, please review the automation command before saving it
+ +
+ + +
-