Skip to content

Commit

Permalink
Use doc link service in Upgrade Assistant (#91573) (#91690)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Feb 17, 2021
1 parent 84bfaa2 commit d5108d6
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,8 @@ interface ReindexFlyoutState {
currentFlyoutStep: ReindexFlyoutStep;
}

// eslint-disable-next-line @typescript-eslint/naming-convention
const getOpenAndCloseIndexDocLink = ({ ELASTIC_WEBSITE_URL, DOC_LINK_VERSION }: DocLinksStart) => (
<EuiLink
target="_blank"
href={`${ELASTIC_WEBSITE_URL}/guide/en/elasticsearch/reference/${DOC_LINK_VERSION}/indices-open-close.html`}
>
const getOpenAndCloseIndexDocLink = (docLinks: DocLinksStart) => (
<EuiLink target="_blank" href={`${docLinks.links.apis.openIndex}`}>
{i18n.translate(
'xpack.upgradeAssistant.checkupTab.reindexing.flyout.openAndCloseDocumentation',
{ defaultMessage: 'documentation' }
Expand Down

0 comments on commit d5108d6

Please sign in to comment.