mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* add missing doc link * node scripts/check_published_api_changes.js --accept Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
This commit is contained in:
parent
a0a6f0ee73
commit
1d79ea46cd
5 changed files with 27 additions and 18 deletions
|
@ -230,6 +230,7 @@ readonly links: {
|
|||
readonly ingest: Record<string, string>;
|
||||
readonly fleet: Readonly<{
|
||||
datastreamsILM: string;
|
||||
beatsAgentComparison: string;
|
||||
guide: string;
|
||||
fleetServer: string;
|
||||
fleetServerAddFleetServer: string;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -479,6 +479,7 @@ export class DocLinksService {
|
|||
settingsFleetServerHostSettings: `${FLEET_DOCS}fleet-settings.html#fleet-server-hosts-setting`,
|
||||
troubleshooting: `${FLEET_DOCS}fleet-troubleshooting.html`,
|
||||
elasticAgent: `${FLEET_DOCS}elastic-agent-installation.html`,
|
||||
beatsAgentComparison: `${FLEET_DOCS}beats-agent-comparison.html`,
|
||||
datastreams: `${FLEET_DOCS}data-streams.html`,
|
||||
datastreamsILM: `${FLEET_DOCS}data-streams.html#data-streams-ilm`,
|
||||
datastreamsNamingScheme: `${FLEET_DOCS}data-streams.html#data-streams-naming-scheme`,
|
||||
|
@ -736,6 +737,7 @@ export interface DocLinksStart {
|
|||
readonly ingest: Record<string, string>;
|
||||
readonly fleet: Readonly<{
|
||||
datastreamsILM: string;
|
||||
beatsAgentComparison: string;
|
||||
guide: string;
|
||||
fleetServer: string;
|
||||
fleetServerAddFleetServer: string;
|
||||
|
|
|
@ -697,6 +697,7 @@ export interface DocLinksStart {
|
|||
readonly ingest: Record<string, string>;
|
||||
readonly fleet: Readonly<{
|
||||
datastreamsILM: string;
|
||||
beatsAgentComparison: string;
|
||||
guide: string;
|
||||
fleetServer: string;
|
||||
fleetServerAddFleetServer: string;
|
||||
|
|
|
@ -22,6 +22,8 @@ import {
|
|||
EuiFlexItem,
|
||||
} from '@elastic/eui';
|
||||
|
||||
import { useStartServices } from '../../../hooks';
|
||||
|
||||
export type IntegrationPreferenceType = 'recommended' | 'beats' | 'agent';
|
||||
|
||||
interface Option {
|
||||
|
@ -34,23 +36,6 @@ export interface Props {
|
|||
onChange: (type: IntegrationPreferenceType) => void;
|
||||
}
|
||||
|
||||
const link = (
|
||||
<EuiLink href="#">
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.epm.integrationPreference.titleLink"
|
||||
defaultMessage="Elastic Agent and Beats"
|
||||
/>
|
||||
</EuiLink>
|
||||
);
|
||||
|
||||
const title = (
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.epm.integrationPreference.title"
|
||||
defaultMessage="If an integration is available for {link}, show:"
|
||||
values={{ link }}
|
||||
/>
|
||||
);
|
||||
|
||||
const recommendedTooltip = (
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.epm.integrationPreference.recommendedTooltip"
|
||||
|
@ -94,6 +79,26 @@ const options: Option[] = [
|
|||
|
||||
export const IntegrationPreference = ({ initialType, onChange }: Props) => {
|
||||
const [idSelected, setIdSelected] = React.useState<IntegrationPreferenceType>(initialType);
|
||||
|
||||
const { docLinks } = useStartServices();
|
||||
|
||||
const link = (
|
||||
<EuiLink href={docLinks.links.fleet.beatsAgentComparison}>
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.epm.integrationPreference.titleLink"
|
||||
defaultMessage="Elastic Agent and Beats"
|
||||
/>
|
||||
</EuiLink>
|
||||
);
|
||||
|
||||
const title = (
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.epm.integrationPreference.title"
|
||||
defaultMessage="If an integration is available for {link}, show:"
|
||||
values={{ link }}
|
||||
/>
|
||||
);
|
||||
|
||||
const radios = options.map((option) => ({
|
||||
id: option.type,
|
||||
value: option.type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue