Skip to content

Commit

Permalink
[Inventory] Add Technical preview icon and link to docs (#196353)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatticha authored Oct 16, 2024
1 parent 501874f commit 4ac575b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { i18n } from '@kbn/i18n';
import React, { useState } from 'react';
import { EntityManagerUnauthorizedError } from '@kbn/entityManager-plugin/public';
import type { IHttpFetchError, ResponseErrorBody } from '@kbn/core/public';
import { TechnicalPreviewBadge } from '@kbn/observability-shared-plugin/public';
import { useKibana } from '../../hooks/use_kibana';
import { Unauthorized } from './unauthorized_modal';

Expand Down Expand Up @@ -57,6 +58,8 @@ export function EnableEntityModelButton({ onSuccess }: { onSuccess: () => void }
data-test-subj="inventoryInventoryPageTemplateFilledButton"
fill
onClick={handleEnablement}
iconType={() => <TechnicalPreviewBadge />}
iconSide="right"
>
{i18n.translate('xpack.inventory.noData.card.button', {
defaultMessage: 'Enable',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,20 @@ export function getEntityManagerEnablement({
description: (
<FormattedMessage
id="xpack.inventory.noData.card.description"
defaultMessage="The inventory uses the {link} to show all of your observed entities in one place."
defaultMessage="The {inventoryLink} uses the {link} to show all of your observed entities in one place."
values={{
inventoryLink: (
<EuiLink
data-test-subj="inventoryNoDataCardInventoryLink"
href="https://ela.st/docs-entity-inventory"
external
target="_blank"
>
{i18n.translate('xpack.inventory.noData.card.description.inventory', {
defaultMessage: 'Inventory',
})}
</EuiLink>
),
link: (
<EuiLink
data-test-subj="inventoryNoDataCardLink"
Expand Down

0 comments on commit 4ac575b

Please sign in to comment.