mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[Inventory] Add Technical preview icon and link to docs (#196353)](https://github.com/elastic/kibana/pull/196353) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Katerina","email":"aikaterini.patticha@elastic.co"},"sourceCommit":{"committedDate":"2024-10-16T12:16:05Z","message":"[Inventory] Add Technical preview icon and link to docs (#196353)\n\n## Summary\r\n\r\ncloses https://github.com/elastic/kibana/issues/196264 \r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a8fdf896-5d55-4060-a274-d2a4188c62b2","sha":"4ac575b3b291743af5fcd70f795ca43ad805fbe7","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","v8.16.0"],"title":"[Inventory] Add Technical preview icon and link to docs","number":196353,"url":"https://github.com/elastic/kibana/pull/196353","mergeCommit":{"message":"[Inventory] Add Technical preview icon and link to docs (#196353)\n\n## Summary\r\n\r\ncloses https://github.com/elastic/kibana/issues/196264 \r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a8fdf896-5d55-4060-a274-d2a4188c62b2","sha":"4ac575b3b291743af5fcd70f795ca43ad805fbe7"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196353","number":196353,"mergeCommit":{"message":"[Inventory] Add Technical preview icon and link to docs (#196353)\n\n## Summary\r\n\r\ncloses https://github.com/elastic/kibana/issues/196264 \r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a8fdf896-5d55-4060-a274-d2a4188c62b2","sha":"4ac575b3b291743af5fcd70f795ca43ad805fbe7"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Katerina <aikaterini.patticha@elastic.co>
This commit is contained in:
parent
1c0f2b639c
commit
2b3ff6728d
2 changed files with 16 additions and 1 deletions
|
@ -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';
|
||||
|
||||
|
@ -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',
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue