mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Change the hosts view search bar placeholder text (#147599)
Closes [#147277](https://github.com/elastic/kibana/issues/147277) ## Summary This PR changes the search bar placeholder texts on the hosts' view page. The new placeholder text is: > Search hosts (E.g. cloud.provider:gcp AND system.load.1 > 0.5) <img width="1427" alt="image" src="https://user-images.githubusercontent.com/14139027/207832784-4409f7e4-220d-480b-8c9e-ba9394e125a5.png">
This commit is contained in:
parent
11a8f2e394
commit
5047b05b7c
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@ import { useKibana } from '@kbn/kibana-react-plugin/public';
|
|||
import type { Filter, Query, TimeRange } from '@kbn/es-query';
|
||||
import type { DataView } from '@kbn/data-views-plugin/public';
|
||||
import type { SavedQuery } from '@kbn/data-plugin/public';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import type { InfraClientStartDeps } from '../../../../types';
|
||||
import { useUnifiedSearchContext } from '../hooks/use_unified_search';
|
||||
import { ControlsContent } from './controls_content';
|
||||
|
@ -64,6 +65,9 @@ export const UnifiedSearchBar = ({ dataView }: Props) => {
|
|||
<>
|
||||
<SearchBar
|
||||
appName={'Infra Hosts'}
|
||||
placeholder={i18n.translate('xpack.infra.hosts.searchPlaceholder', {
|
||||
defaultMessage: 'Search hosts (E.g. cloud.provider:gcp AND system.load.1 > 0.5)',
|
||||
})}
|
||||
indexPatterns={[dataView]}
|
||||
query={unifiedSearchQuery}
|
||||
dateRangeFrom={unifiedSearchDateRange.from}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue