[Logs UI] Disable search bar when live stream is on. (#65491)
This commit is contained in:
parent
3f3d5f9666
commit
f53b147097
|
@ -26,6 +26,7 @@ interface AutocompleteFieldProps {
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
suggestions: QuerySuggestion[];
|
suggestions: QuerySuggestion[];
|
||||||
value: string;
|
value: string;
|
||||||
|
disabled?: boolean;
|
||||||
autoFocus?: boolean;
|
autoFocus?: boolean;
|
||||||
'aria-label'?: string;
|
'aria-label'?: string;
|
||||||
}
|
}
|
||||||
|
@ -55,6 +56,7 @@ export class AutocompleteField extends React.Component<
|
||||||
isValid,
|
isValid,
|
||||||
placeholder,
|
placeholder,
|
||||||
value,
|
value,
|
||||||
|
disabled,
|
||||||
'aria-label': ariaLabel,
|
'aria-label': ariaLabel,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const { areSuggestionsVisible, selectedIndex } = this.state;
|
const { areSuggestionsVisible, selectedIndex } = this.state;
|
||||||
|
@ -64,6 +66,7 @@ export class AutocompleteField extends React.Component<
|
||||||
<AutocompleteContainer>
|
<AutocompleteContainer>
|
||||||
<FixedEuiFieldSearch
|
<FixedEuiFieldSearch
|
||||||
fullWidth
|
fullWidth
|
||||||
|
disabled={disabled}
|
||||||
inputRef={this.handleChangeInputRef}
|
inputRef={this.handleChangeInputRef}
|
||||||
isLoading={isLoadingSuggestions}
|
isLoading={isLoadingSuggestions}
|
||||||
isInvalid={!isValid}
|
isInvalid={!isValid}
|
||||||
|
|
|
@ -64,6 +64,7 @@ export const LogsToolbar = () => {
|
||||||
isLoadingSuggestions={isLoadingSuggestions}
|
isLoadingSuggestions={isLoadingSuggestions}
|
||||||
isValid={isFilterQueryDraftValid}
|
isValid={isFilterQueryDraftValid}
|
||||||
loadSuggestions={loadSuggestions}
|
loadSuggestions={loadSuggestions}
|
||||||
|
disabled={isStreaming}
|
||||||
onChange={(expression: string) => {
|
onChange={(expression: string) => {
|
||||||
setSurroundingLogsId(null);
|
setSurroundingLogsId(null);
|
||||||
setLogFilterQueryDraft(expression);
|
setLogFilterQueryDraft(expression);
|
||||||
|
|
Loading…
Reference in a new issue