Skip to content

Commit

Permalink
[Logs UI] Disable search bar when live stream is on. (#65491)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández authored May 7, 2020
1 parent 3f3d5f9 commit f53b147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ interface AutocompleteFieldProps {
placeholder?: string;
suggestions: QuerySuggestion[];
value: string;
disabled?: boolean;
autoFocus?: boolean;
'aria-label'?: string;
}
Expand Down Expand Up @@ -55,6 +56,7 @@ export class AutocompleteField extends React.Component<
isValid,
placeholder,
value,
disabled,
'aria-label': ariaLabel,
} = this.props;
const { areSuggestionsVisible, selectedIndex } = this.state;
Expand All @@ -64,6 +66,7 @@ export class AutocompleteField extends React.Component<
<AutocompleteContainer>
<FixedEuiFieldSearch
fullWidth
disabled={disabled}
inputRef={this.handleChangeInputRef}
isLoading={isLoadingSuggestions}
isInvalid={!isValid}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const LogsToolbar = () => {
isLoadingSuggestions={isLoadingSuggestions}
isValid={isFilterQueryDraftValid}
loadSuggestions={loadSuggestions}
disabled={isStreaming}
onChange={(expression: string) => {
setSurroundingLogsId(null);
setLogFilterQueryDraft(expression);
Expand Down

0 comments on commit f53b147

Please sign in to comment.