Skip to content

Commit

Permalink
expose showFilterBar prop
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Nov 7, 2024
1 parent 3155142 commit 59ce38e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ interface EqlQueryEditProps {
eqlFieldsComboBoxOptions?: EqlFieldsComboBoxOptions;
eqlOptions?: EqlOptions;
showEqlSizeOption?: boolean;
showFilterBar?: boolean;
dataView: DataViewBase;
required?: boolean;
loading?: boolean;
Expand All @@ -40,6 +41,7 @@ export function EqlQueryEdit({
eqlFieldsComboBoxOptions,
eqlOptions,
showEqlSizeOption = false,
showFilterBar = false,
dataView,
required,
loading,
Expand All @@ -57,7 +59,7 @@ export function EqlQueryEdit({
isDisabled: disabled,
isLoading: loading,
indexPattern: dataView,
showFilterBar: true,
showFilterBar,
idAria: 'ruleEqlQueryBar',
dataTestSubj: 'ruleEqlQueryBar',
onValidityChange,
Expand All @@ -67,6 +69,7 @@ export function EqlQueryEdit({
eqlFieldsComboBoxOptions,
eqlOptions,
showEqlSizeOption,
showFilterBar,
onEqlOptionsChange,
onValidityChange,
onValiditingChange,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ const StepDefineRuleComponent: FC<StepDefineRuleProps> = ({
key="eqlQueryBar"
path="queryBar"
required
showFilterBar
eqlFieldsComboBoxOptions={optionsData}
eqlOptions={optionsSelected}
dataView={indexPattern}
Expand Down

0 comments on commit 59ce38e

Please sign in to comment.