From 757d2484aa99927ec2768203aed829f1a8afc4ac Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Tue, 10 Sep 2024 11:27:58 -0700 Subject: [PATCH] Update large record report warning (#429) Signed-off-by: Simeon Widdis --- .../report_settings/report_settings.tsx | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/public/components/report_definitions/report_settings/report_settings.tsx b/public/components/report_definitions/report_settings/report_settings.tsx index 706b484f..f81826ee 100644 --- a/public/components/report_definitions/report_settings/report_settings.tsx +++ b/public/components/report_definitions/report_settings/report_settings.tsx @@ -22,9 +22,7 @@ import { EuiCompressedCheckboxGroup, EuiCompressedComboBox, EuiFormRow, - OuiCallOut, - EuiText, - EuiIcon, + EuiCallOut, } from '@elastic/eui'; import { REPORT_SOURCE_RADIOS, @@ -801,22 +799,26 @@ export function ReportSettings(props: ReportSettingProps) { /> + {savedSearchRecordLimit > 10000 ? ( + <> + + + + ) : null} 10000 ? ( - - Generating - very large reports can cause memory issues. - - ) : ( - '' - ) - } >