From d99bc1d2142ceac12c92464c6bfafece5a9f2141 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 | 29 ++++++++++--------- 1 file changed, 16 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 4f008d07..dd07bdfa 100644 --- a/public/components/report_definitions/report_settings/report_settings.tsx +++ b/public/components/report_definitions/report_settings/report_settings.tsx @@ -10,7 +10,6 @@ import { EuiFieldNumber, EuiFlexGroup, EuiFlexItem, - EuiFormRow, EuiPageHeader, EuiTitle, EuiPageContent, @@ -21,8 +20,8 @@ import { EuiTextArea, EuiCheckboxGroup, EuiComboBox, - EuiText, - EuiIcon, + EuiFormRow, + 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. - - ) : ( - '' - ) - } >