Skip to content

Commit 557172e

Browse files
authored
[7.x][ML] Removes link from helper text on ML overview page. (#73965)
1 parent a8ed8f8 commit 557172e

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

x-pack/plugins/ml/public/application/overview/components/sidebar.tsx

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,12 @@ import { EuiFlexItem, EuiLink, EuiSpacer, EuiText, EuiTitle } from '@elastic/eui
99
import { FormattedMessage } from '@kbn/i18n/react';
1010
import { useMlKibana } from '../../contexts/kibana';
1111

12-
const createJobLink = '#/jobs/new_job/step/index_or_search';
1312
const feedbackLink = 'https://www.elastic.co/community/';
1413

1514
interface Props {
1615
createAnomalyDetectionJobDisabled: boolean;
1716
}
1817

19-
function getCreateJobLink(createAnomalyDetectionJobDisabled: boolean) {
20-
return createAnomalyDetectionJobDisabled === true ? (
21-
<FormattedMessage
22-
id="xpack.ml.overview.gettingStartedSectionCreateJob"
23-
defaultMessage="creating a new job"
24-
/>
25-
) : (
26-
<EuiLink href={createJobLink} target="blank">
27-
<FormattedMessage
28-
id="xpack.ml.overview.gettingStartedSectionCreateJob"
29-
defaultMessage="creating a new job"
30-
/>
31-
</EuiLink>
32-
);
33-
}
34-
3518
export const OverviewSideBar: FC<Props> = ({ createAnomalyDetectionJobDisabled }) => {
3619
const {
3720
services: {
@@ -59,7 +42,7 @@ export const OverviewSideBar: FC<Props> = ({ createAnomalyDetectionJobDisabled }
5942
<p>
6043
<FormattedMessage
6144
id="xpack.ml.overview.gettingStartedSectionText"
62-
defaultMessage="Welcome to Machine Learning. Get started by reviewing our {docs} or {createJob}. We recommend using {transforms} to create feature indices for analytics jobs."
45+
defaultMessage="Welcome to Machine Learning. Get started by reviewing our {docs} or creating a new job. We recommend using {transforms} to create feature indices for analytics jobs."
6346
values={{
6447
docs: (
6548
<EuiLink href={docsLink} target="blank">
@@ -69,7 +52,6 @@ export const OverviewSideBar: FC<Props> = ({ createAnomalyDetectionJobDisabled }
6952
/>
7053
</EuiLink>
7154
),
72-
createJob: getCreateJobLink(createAnomalyDetectionJobDisabled),
7355
transforms: (
7456
<EuiLink href={transformsLink} target="blank">
7557
<FormattedMessage

x-pack/plugins/translations/translations/ja-JP.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12376,9 +12376,7 @@
1237612376
"xpack.ml.overview.feedbackSectionLink": "オンラインでのフィードバック",
1237712377
"xpack.ml.overview.feedbackSectionText": "ご利用に際し、ご意見やご提案がありましたら、{feedbackLink}までお送りください。",
1237812378
"xpack.ml.overview.feedbackSectionTitle": "フィードバック",
12379-
"xpack.ml.overview.gettingStartedSectionCreateJob": "新規ジョブを作成中",
1238012379
"xpack.ml.overview.gettingStartedSectionDocs": "ドキュメンテーション",
12381-
"xpack.ml.overview.gettingStartedSectionText": "機械学習へようこそ。はじめに{docs}や{createJob}をご参照ください。{transforms}を使用して、分析ジョブの機能インデックスを作成することをお勧めします。",
1238212380
"xpack.ml.overview.gettingStartedSectionTitle": "はじめて使う",
1238312381
"xpack.ml.overview.gettingStartedSectionTransforms": "Elasticsearchの変換",
1238412382
"xpack.ml.overview.overviewLabel": "概要",

x-pack/plugins/translations/translations/zh-CN.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12379,9 +12379,7 @@
1237912379
"xpack.ml.overview.feedbackSectionLink": "在线反馈",
1238012380
"xpack.ml.overview.feedbackSectionText": "如果您在体验方面有任何意见或建议,请提交{feedbackLink}。",
1238112381
"xpack.ml.overview.feedbackSectionTitle": "反馈",
12382-
"xpack.ml.overview.gettingStartedSectionCreateJob": "创建新作业",
1238312382
"xpack.ml.overview.gettingStartedSectionDocs": "文档",
12384-
"xpack.ml.overview.gettingStartedSectionText": "欢迎使用 Machine Learning。首先阅读我们的{docs}或{createJob}。建议使用 {transforms} 为分析作业创建功能索引。",
1238512383
"xpack.ml.overview.gettingStartedSectionTitle": "入门",
1238612384
"xpack.ml.overview.gettingStartedSectionTransforms": "Elasticsearch 的转换",
1238712385
"xpack.ml.overview.overviewLabel": "概览",

0 commit comments

Comments
 (0)