[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;
|
||||
suggestions: QuerySuggestion[];
|
||||
value: string;
|
||||
disabled?: boolean;
|
||||
autoFocus?: boolean;
|
||||
'aria-label'?: string;
|
||||
}
|
||||
|
@ -55,6 +56,7 @@ export class AutocompleteField extends React.Component<
|
|||
isValid,
|
||||
placeholder,
|
||||
value,
|
||||
disabled,
|
||||
'aria-label': ariaLabel,
|
||||
} = this.props;
|
||||
const { areSuggestionsVisible, selectedIndex } = this.state;
|
||||
|
@ -64,6 +66,7 @@ export class AutocompleteField extends React.Component<
|
|||
<AutocompleteContainer>
|
||||
<FixedEuiFieldSearch
|
||||
fullWidth
|
||||
disabled={disabled}
|
||||
inputRef={this.handleChangeInputRef}
|
||||
isLoading={isLoadingSuggestions}
|
||||
isInvalid={!isValid}
|
||||
|
|
|
@ -64,6 +64,7 @@ export const LogsToolbar = () => {
|
|||
isLoadingSuggestions={isLoadingSuggestions}
|
||||
isValid={isFilterQueryDraftValid}
|
||||
loadSuggestions={loadSuggestions}
|
||||
disabled={isStreaming}
|
||||
onChange={(expression: string) => {
|
||||
setSurroundingLogsId(null);
|
||||
setLogFilterQueryDraft(expression);
|
||||
|
|
Loading…
Reference in a new issue