mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.7`: - [[ML] Edit insufficient license message (#155963)](https://github.com/elastic/kibana/pull/155963) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2023-04-28T15:39:07Z","message":"[ML] Edit insufficient license message (#155963)","sha":"af1825369eb152a80d50f65a3235e6d0399d6c57","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","backport:skip","ui-copy","v8.9.0"],"number":155963,"url":"https://github.com/elastic/kibana/pull/155963","mergeCommit":{"message":"[ML] Edit insufficient license message (#155963)","sha":"af1825369eb152a80d50f65a3235e6d0399d6c57"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/155963","number":155963,"mergeCommit":{"message":"[ML] Edit insufficient license message (#155963)","sha":"af1825369eb152a80d50f65a3235e6d0399d6c57"}},{"url":"https://github.com/elastic/kibana/pull/156194","number":156194,"branch":"8.8","state":"OPEN"}]}] BACKPORT-->
This commit is contained in:
parent
835b4e7dc8
commit
feeb207d76
4 changed files with 65 additions and 42 deletions
|
@ -10,7 +10,14 @@ import React, { FC } from 'react';
|
|||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import { CoreStart } from '@kbn/core/public';
|
||||
|
||||
import { EuiEmptyPrompt, EuiLink, EuiPageContent_Deprecated as EuiPageContent } from '@elastic/eui';
|
||||
import {
|
||||
EuiButton,
|
||||
EuiButtonEmpty,
|
||||
EuiFlexGroup,
|
||||
EuiFlexItem,
|
||||
EuiPageTemplate,
|
||||
EuiText,
|
||||
} from '@elastic/eui';
|
||||
|
||||
interface Props {
|
||||
basePath: CoreStart['http']['basePath'];
|
||||
|
@ -18,41 +25,63 @@ interface Props {
|
|||
|
||||
export const InsufficientLicensePage: FC<Props> = ({ basePath }) => (
|
||||
<>
|
||||
<EuiPageContent
|
||||
verticalPosition="center"
|
||||
horizontalPosition="center"
|
||||
color="danger"
|
||||
<EuiPageTemplate.EmptyPrompt
|
||||
title={
|
||||
<h2>
|
||||
<FormattedMessage
|
||||
id="xpack.ml.management.jobsList.insufficientLicenseLabel"
|
||||
defaultMessage="Machine learning is a subscription feature"
|
||||
/>
|
||||
</h2>
|
||||
}
|
||||
data-test-subj="mlPageInsufficientLicense"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
iconType="alert"
|
||||
title={
|
||||
<h2>
|
||||
<FormattedMessage
|
||||
id="xpack.ml.management.jobsList.insufficientLicenseLabel"
|
||||
defaultMessage="Upgrade for subscription features"
|
||||
/>
|
||||
</h2>
|
||||
}
|
||||
body={
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.ml.management.jobsList.insufficientLicenseDescription"
|
||||
defaultMessage="To use these machine learning features, you must {link}."
|
||||
values={{
|
||||
link: (
|
||||
<EuiLink href={`${basePath.get()}/app/management/stack/license_management/home`}>
|
||||
<FormattedMessage
|
||||
id="xpack.ml.management.jobsList.insufficientLicenseDescription.link"
|
||||
defaultMessage="start a trial or upgrade your subscription"
|
||||
/>
|
||||
</EuiLink>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</p>
|
||||
}
|
||||
/>
|
||||
</EuiPageContent>
|
||||
body={
|
||||
<EuiFlexGroup direction="column">
|
||||
<EuiFlexItem>
|
||||
<EuiText color="subdued">
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.ml.management.jobsList.insufficientLicenseDescription"
|
||||
defaultMessage="Select an option to unlock it."
|
||||
/>
|
||||
</p>
|
||||
</EuiText>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiFlexGroup justifyContent="center">
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiButtonEmpty
|
||||
data-test-subj="license-prompt-upgrade"
|
||||
key="upgrade-subscription-button"
|
||||
target="_blank"
|
||||
href="https://www.elastic.co/subscriptions"
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.ml.management.jobsList.insufficientLicenseDescription.SubscriptionLink"
|
||||
defaultMessage="Upgrade your subscription"
|
||||
/>
|
||||
</EuiButtonEmpty>
|
||||
,
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiButton
|
||||
fill
|
||||
data-test-subj="license-prompt-trial"
|
||||
key="start-trial-button"
|
||||
target="_blank"
|
||||
href={`${basePath.get()}/app/management/stack/license_management/home`}
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.ml.management.jobsList.insufficientLicenseDescription.startTrialLink"
|
||||
defaultMessage="Start trial"
|
||||
/>
|
||||
</EuiButton>
|
||||
,
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -21559,7 +21559,6 @@
|
|||
"xpack.ml.jobsList.stopDatafeedsConfirmModal.stopButtonLabel": "Arrêter {jobsCount, plural, one {le flux de données} other {les flux de données}}",
|
||||
"xpack.ml.jobsList.stopDatafeedsModal.stopDatafeedsTitle": "Arrêter le flux de données pour {jobsCount, plural, one {{jobId}} other {# tâches}} ?",
|
||||
"xpack.ml.managedJobsWarningCallout": "{jobsCount, plural, one {Cette tâche} other {Au moins l'une de ces tâches}} est préconfigurée par Elastic. Le fait de {jobsCount, plural, one {la} other {les}} {action} peut avoir un impact sur d'autres éléments du produit.",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseDescription": "Pour utiliser ces fonctionnalités de Machine Learning, vous devez {link}.",
|
||||
"xpack.ml.management.jobsSpacesList.updateSpaces.error": "Erreur lors de la mise à jour de {id}",
|
||||
"xpack.ml.management.syncSavedObjectsFlyout.datafeedsAdded.title": "Objets enregistrés sans flux de données ({count})",
|
||||
"xpack.ml.management.syncSavedObjectsFlyout.datafeedsRemoved.title": "Objets enregistrés avec des ID de flux de données sans correspondance ({count})",
|
||||
|
@ -23041,7 +23040,6 @@
|
|||
"xpack.ml.management.jobsList.accessDeniedTitle": "Accès refusé",
|
||||
"xpack.ml.management.jobsList.analyticsDocsLabel": "Documents de tâches d'analyse",
|
||||
"xpack.ml.management.jobsList.anomalyDetectionDocsLabel": "Documents de tâches de détection des anomalies",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseDescription.link": "démarrer un essai ou mettre à niveau votre abonnement",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseLabel": "Mettre à niveau pour bénéficier des fonctionnalités d'abonnement",
|
||||
"xpack.ml.management.jobsList.jobsListTagline": "Visualisez, exportez et importez des éléments d'analyse de Machine Learning et de détection des anomalies.",
|
||||
"xpack.ml.management.jobsList.jobsListTitle": "Machine Learning",
|
||||
|
|
|
@ -21550,7 +21550,6 @@
|
|||
"xpack.ml.jobsList.startDatafeedsModal.startManagedDatafeedsDescription": "{jobsCount, plural, other {これらのジョブのうちの少なくとも1個のジョブ}}はElasticによってあらかじめ構成されています。終了日を指定して{jobsCount, plural, other {それらを}}開始すると、製品の他の部分に影響する可能性があります。",
|
||||
"xpack.ml.jobsList.stopDatafeedsConfirmModal.stopButtonLabel": "{jobsCount, plural, other {データフィード}}を終了",
|
||||
"xpack.ml.managedJobsWarningCallout": "{jobsCount, plural, other {これらのジョブのうちの少なくとも1個のジョブ}}はElasticによってあらかじめ構成されています。{jobsCount, plural, other {それらを}}{action}すると、製品の他の部分に影響する可能性があります。",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseDescription": "これらの機械学習機能を使用するには、{link}する必要があります。",
|
||||
"xpack.ml.management.jobsSpacesList.updateSpaces.error": "{id}の更新エラー",
|
||||
"xpack.ml.management.syncSavedObjectsFlyout.datafeedsAdded.title": "データフィードがない選択されたオブジェクト({count})",
|
||||
"xpack.ml.management.syncSavedObjectsFlyout.datafeedsRemoved.title": "データフィードIDが一致しない保存されたオブジェクト({count})",
|
||||
|
@ -23027,7 +23026,6 @@
|
|||
"xpack.ml.management.jobsList.accessDeniedTitle": "アクセスが拒否されました",
|
||||
"xpack.ml.management.jobsList.analyticsDocsLabel": "分析ジョブドキュメント",
|
||||
"xpack.ml.management.jobsList.anomalyDetectionDocsLabel": "異常検知ジョブドキュメント",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseDescription.link": "試用版を開始するか、サブスクリプションをアップグレード",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseLabel": "サブスクリプション機能のアップグレード",
|
||||
"xpack.ml.management.jobsList.jobsListTagline": "機械学習分析と異常検知項目を表示、エクスポート、インポートします。",
|
||||
"xpack.ml.management.jobsList.jobsListTitle": "機械学習",
|
||||
|
|
|
@ -21556,7 +21556,6 @@
|
|||
"xpack.ml.jobsList.stopDatafeedsConfirmModal.stopButtonLabel": "停止{jobsCount, plural, other {数据馈送}}",
|
||||
"xpack.ml.jobsList.stopDatafeedsModal.stopDatafeedsTitle": "停止 {jobsCount, plural, one {{jobId}} other {# 个作业}}的数据馈送?",
|
||||
"xpack.ml.managedJobsWarningCallout": "{jobsCount, plural, one {此作业} other {至少一个此类作业}}由 Elastic 预配置;{action} {jobsCount, plural, one {此作业} other {这些作业}}可能会影响该产品的其他部分。",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseDescription": "要使用这些 Machine Learning 功能,必须{link}。",
|
||||
"xpack.ml.management.jobsSpacesList.updateSpaces.error": "更新 {id} 时出错",
|
||||
"xpack.ml.management.syncSavedObjectsFlyout.datafeedsAdded.title": "缺失数据馈送的已保存对象 ({count})",
|
||||
"xpack.ml.management.syncSavedObjectsFlyout.datafeedsRemoved.title": "具有不匹配数据馈送 ID 的已保存对象 ({count})",
|
||||
|
@ -23038,7 +23037,6 @@
|
|||
"xpack.ml.management.jobsList.accessDeniedTitle": "访问被拒绝",
|
||||
"xpack.ml.management.jobsList.analyticsDocsLabel": "分析作业文档",
|
||||
"xpack.ml.management.jobsList.anomalyDetectionDocsLabel": "异常检测作业文档",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseDescription.link": "开始试用或升级您的订阅",
|
||||
"xpack.ml.management.jobsList.insufficientLicenseLabel": "升级以使用订阅功能",
|
||||
"xpack.ml.management.jobsList.jobsListTagline": "查看、导出和导入 Machine Learning 分析和异常检测项目。",
|
||||
"xpack.ml.management.jobsList.jobsListTitle": "Machine Learning",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue