From d8badba083a8f02c0385c255c99ee8ad274e38ca 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 | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/public/components/report_definitions/report_settings/report_settings.tsx b/public/components/report_definitions/report_settings/report_settings.tsx index a13709f7..dd07bdfa 100644 --- a/public/components/report_definitions/report_settings/report_settings.tsx +++ b/public/components/report_definitions/report_settings/report_settings.tsx @@ -21,8 +21,7 @@ import { EuiCheckboxGroup, EuiComboBox, EuiFormRow, - EuiText, - EuiIcon, + EuiCallOut, } from '@elastic/eui'; import { REPORT_SOURCE_RADIOS, @@ -800,22 +799,26 @@ export function ReportSettings(props: ReportSettingProps) { /> + {savedSearchRecordLimit > 10000 ? ( + <> + + + + ) : null} 10000 ? ( - - Generating - very large reports can cause memory issues. - - ) : ( - '' - ) - } >