mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
(cherry picked from commit 8bfbfd2ff6
)
Co-authored-by: Byron Hulcher <byron.hulcher@elastic.co>
This commit is contained in:
parent
03b003c3f4
commit
f3f0090f24
5 changed files with 11 additions and 2 deletions
|
@ -118,6 +118,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
|
|||
webCrawlerReference: `${APP_SEARCH_DOCS}web-crawler-reference.html`,
|
||||
},
|
||||
enterpriseSearch: {
|
||||
apiKeys: `${KIBANA_DOCS}api-keys.html`,
|
||||
bulkApi: `${ELASTICSEARCH_DOCS}docs-bulk.html`,
|
||||
configuration: `${ENTERPRISE_SEARCH_DOCS}configuration.html`,
|
||||
crawlerGettingStarted: `${ENTERPRISE_SEARCH_DOCS}crawler-getting-started.html`,
|
||||
|
|
|
@ -104,6 +104,7 @@ export interface DocLinks {
|
|||
readonly webCrawlerReference: string;
|
||||
};
|
||||
readonly enterpriseSearch: {
|
||||
readonly apiKeys: string;
|
||||
readonly bulkApi: string;
|
||||
readonly configuration: string;
|
||||
readonly crawlerGettingStarted: string;
|
||||
|
|
|
@ -15,6 +15,8 @@ import React from 'react';
|
|||
import { EuiEmptyPrompt, EuiLink, EuiPanel, EuiTitle } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { docLinks } from '../../../shared/doc_links';
|
||||
|
||||
export const SearchIndexEmptyState: React.FC = () => {
|
||||
return (
|
||||
<EuiPanel color="subdued">
|
||||
|
@ -43,7 +45,7 @@ export const SearchIndexEmptyState: React.FC = () => {
|
|||
})}
|
||||
</h4>
|
||||
</EuiTitle>
|
||||
<EuiLink href="#" target="_blank">
|
||||
<EuiLink href={docLinks.start} target="_blank">
|
||||
{i18n.translate('xpack.enterpriseSearch.content.newIndex.emptyState.footer.link', {
|
||||
defaultMessage: 'Read the docs',
|
||||
})}
|
||||
|
|
|
@ -30,6 +30,8 @@ import {
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { docLinks } from '../../../../../shared/doc_links';
|
||||
|
||||
import { ApiKey } from '../../../api_key/api_key';
|
||||
|
||||
import { GenerateApiKeyModalLogic } from './generate_api_key_modal.logic';
|
||||
|
@ -61,7 +63,7 @@ export const GenerateApiKeyModal: React.FC<GenerateApiKeyModalProps> = ({ indexN
|
|||
"Before you can start posting documents to your Elasticsearch index you'll need to create at least one API key.",
|
||||
})}
|
||||
|
||||
<EuiLink href={/* TODO link to docs */ '#'} external>
|
||||
<EuiLink href={docLinks.apiKeys} external>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.overview.generateApiKeyModal.learnMore',
|
||||
{ defaultMessage: 'Learn more about API keys' }
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
import { DocLinksStart } from '@kbn/core/public';
|
||||
|
||||
class DocLinks {
|
||||
public apiKeys: string;
|
||||
public appSearchAdaptiveRelevance: string;
|
||||
public appSearchApiClients: string;
|
||||
public appSearchApiKeys: string;
|
||||
|
@ -111,6 +112,7 @@ class DocLinks {
|
|||
public workplaceSearchZoom: string;
|
||||
|
||||
constructor() {
|
||||
this.apiKeys = '';
|
||||
this.appSearchAdaptiveRelevance = '';
|
||||
this.appSearchApis = '';
|
||||
this.appSearchApiClients = '';
|
||||
|
@ -215,6 +217,7 @@ class DocLinks {
|
|||
}
|
||||
|
||||
public setDocLinks(docLinks: DocLinksStart): void {
|
||||
this.apiKeys = docLinks.links.enterpriseSearch.apiKeys;
|
||||
this.appSearchAdaptiveRelevance = docLinks.links.appSearch.adaptiveRelevance;
|
||||
this.appSearchApis = docLinks.links.appSearch.apiRef;
|
||||
this.appSearchApiClients = docLinks.links.appSearch.apiClients;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue