From f78f8dda364d065d4165a93c6ac2af0956d5d94f Mon Sep 17 00:00:00 2001 From: Jovan Cvetkovic Date: Mon, 9 Jan 2023 10:28:00 +0100 Subject: [PATCH 1/2] [FEATURE] Detector must have at least one alert set #288 Signed-off-by: Jovan Cvetkovic --- .../ConfigureAlerts/containers/ConfigureAlerts.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/pages/CreateDetector/components/ConfigureAlerts/containers/ConfigureAlerts.tsx b/public/pages/CreateDetector/components/ConfigureAlerts/containers/ConfigureAlerts.tsx index 9cf0ddbc1..5f4ce02b8 100644 --- a/public/pages/CreateDetector/components/ConfigureAlerts/containers/ConfigureAlerts.tsx +++ b/public/pages/CreateDetector/components/ConfigureAlerts/containers/ConfigureAlerts.tsx @@ -130,9 +130,13 @@ export default class ConfigureAlerts extends Component this.onDelete(index)}> - Remove alert trigger - + triggers.length > 1 ? ( + this.onDelete(index)}> + Remove alert trigger + + ) : ( + <> + ) } > From 57a308df4b77f754b2fd309afd1001793a79c01d Mon Sep 17 00:00:00 2001 From: Jovan Cvetkovic Date: Wed, 11 Jan 2023 19:48:01 +0100 Subject: [PATCH 2/2] [BUG] Switch colors for Alerts STATUS chart #349 Signed-off-by: Jovan Cvetkovic --- public/pages/Overview/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/pages/Overview/utils/helpers.ts b/public/pages/Overview/utils/helpers.ts index f9ce46ed0..497c8c1ff 100644 --- a/public/pages/Overview/utils/helpers.ts +++ b/public/pages/Overview/utils/helpers.ts @@ -263,8 +263,8 @@ export function getAlertsVisualizationSpec( let states = ['ACTIVE', 'ACKNOWLEDGED']; const statusColors = { - euiColorVis6: '#B9A888', euiColorVis9: '#E7664C', + euiColorVis6: '#B9A888', }; const statusTitle = 'Alert status';