[Logs UI] Disable search bar when live stream is on. (#65491)

This commit is contained in:
Alejandro Fernández 2020-05-07 11:15:47 +02:00 committed by GitHub
parent 3f3d5f9666
commit f53b147097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -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}

View file

@ -64,6 +64,7 @@ export const LogsToolbar = () => {
isLoadingSuggestions={isLoadingSuggestions}
isValid={isFilterQueryDraftValid}
loadSuggestions={loadSuggestions}
disabled={isStreaming}
onChange={(expression: string) => {
setSurroundingLogsId(null);
setLogFilterQueryDraft(expression);