-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into redesign-grid-toolbar
- Loading branch information
Showing
20 changed files
with
256 additions
and
425 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...ages/kbn-unified-data-table/src/components/__snapshots__/data_table_columns.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,8 @@ | |
"kibanaReact", | ||
"ml", | ||
"embeddable", | ||
"controls" | ||
"controls", | ||
"advancedSettings" | ||
] | ||
} | ||
} |
86 changes: 0 additions & 86 deletions
86
...a/public/pages/metrics/hosts/components/enable_hosts_view_page/enable_hosts_view_page.tsx
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ges/metrics/hosts/components/enable_hosts_view_page/hosts_landing_beta_dark.svg
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...es/metrics/hosts/components/enable_hosts_view_page/hosts_landing_beta_light.svg
This file was deleted.
Oops, something went wrong.
92 changes: 0 additions & 92 deletions
92
x-pack/plugins/infra/public/pages/metrics/hosts/hosts_landing_page.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
x-pack/plugins/infra/public/pages/metrics/settings/features_configuration_panel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { EuiTitle } from '@elastic/eui'; | ||
import { EuiSpacer } from '@elastic/eui'; | ||
import { EuiForm } from '@elastic/eui'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import React from 'react'; | ||
import { enableInfrastructureHostsView } from '@kbn/observability-plugin/common'; | ||
import { useEditableSettings } from '@kbn/observability-shared-plugin/public'; | ||
import { LazyField } from '@kbn/advanced-settings-plugin/public'; | ||
import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; | ||
|
||
type Props = Pick< | ||
ReturnType<typeof useEditableSettings>, | ||
'handleFieldChange' | 'settingsEditableConfig' | 'unsavedChanges' | ||
> & { | ||
readOnly: boolean; | ||
}; | ||
|
||
export function FeaturesConfigurationPanel({ | ||
readOnly, | ||
handleFieldChange, | ||
settingsEditableConfig, | ||
unsavedChanges, | ||
}: Props) { | ||
const { | ||
services: { docLinks, notifications }, | ||
} = useKibanaContextForPlugin(); | ||
|
||
return ( | ||
<EuiForm> | ||
<EuiTitle size="s" data-test-subj="sourceConfigurationFeaturesSectionTitle"> | ||
<h3> | ||
<FormattedMessage | ||
id="xpack.infra.sourceConfiguration.featuresSectionTitle" | ||
defaultMessage="Features" | ||
/> | ||
</h3> | ||
</EuiTitle> | ||
<EuiSpacer size="m" /> | ||
<LazyField | ||
key={enableInfrastructureHostsView} | ||
setting={settingsEditableConfig[enableInfrastructureHostsView]} | ||
handleChange={handleFieldChange} | ||
enableSaving={!readOnly} | ||
docLinks={docLinks.links} | ||
toasts={notifications.toasts} | ||
unsavedChanges={unsavedChanges[enableInfrastructureHostsView]} | ||
/> | ||
</EuiForm> | ||
); | ||
} |
Oops, something went wrong.