Use doc link services in index pattern management (#89937)
This commit is contained in:
parent
9e7e1e1708
commit
808bd44463
|
@ -121,6 +121,7 @@ export class DocLinksService {
|
|||
addData: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/connect-to-elasticsearch.html`,
|
||||
kibana: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/index.html`,
|
||||
elasticsearch: {
|
||||
mapping: `${ELASTICSEARCH_DOCS}mapping.html`,
|
||||
remoteClusters: `${ELASTICSEARCH_DOCS}modules-remote-clusters.html`,
|
||||
remoteClustersProxy: `${ELASTICSEARCH_DOCS}modules-remote-clusters.html#proxy-mode`,
|
||||
remoteClusersProxySettings: `${ELASTICSEARCH_DOCS}modules-remote-clusters.html#remote-cluster-proxy-settings`,
|
||||
|
|
|
@ -149,7 +149,8 @@ export const EditIndexPattern = withRouter(
|
|||
chrome.docTitle.change(indexPattern.title);
|
||||
|
||||
const showTagsSection = Boolean(indexPattern.timeFieldName || (tags && tags.length > 0));
|
||||
|
||||
const kibana = useKibana();
|
||||
const docsUrl = kibana.services.docLinks!.links.elasticsearch.mapping;
|
||||
return (
|
||||
<EuiPanel paddingSize={'l'}>
|
||||
<div data-test-subj="editIndexPattern" role="region" aria-label={headingAriaLabel}>
|
||||
|
@ -182,11 +183,7 @@ export const EditIndexPattern = withRouter(
|
|||
defaultMessage="This page lists every field in the {indexPatternTitle} index and the field's associated core type as recorded by Elasticsearch. To change a field type, use the Elasticsearch"
|
||||
values={{ indexPatternTitle: <strong>{indexPattern.title}</strong> }}
|
||||
/>{' '}
|
||||
<EuiLink
|
||||
href="http://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html"
|
||||
target="_blank"
|
||||
external
|
||||
>
|
||||
<EuiLink href={docsUrl} target="_blank" external>
|
||||
{mappingAPILink}
|
||||
</EuiLink>
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue