Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/legacy/core_plugins/telemetry/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ export const TELEMETRY_STATS_TYPE = 'telemetry';
* @type {string}
*/
export const UI_METRIC_USAGE_TYPE = 'ui_metric';

/**
* Link to Advanced Settings.
*/
export const PATH_TO_ADVANCED_SETTINGS = 'kibana#/management/kibana/settings';

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
/* eslint @elastic/eui/href-or-on-click:0 */

import * as React from 'react';
import chrome from 'ui/chrome';
import { EuiButton, EuiLink, EuiCallOut, EuiSpacer } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { PATH_TO_ADVANCED_SETTINGS } from '../../common/constants';

interface Props {
onSeenBanner: () => any;
Expand Down Expand Up @@ -57,7 +59,10 @@ export class OptedInBanner extends React.PureComponent<Props> {
</EuiLink>
),
disableLink: (
<EuiLink href="#/management/kibana/settings" onClick={this.onLinkClick}>
<EuiLink
href={chrome.addBasePath(PATH_TO_ADVANCED_SETTINGS)}
onClick={this.onLinkClick}
>
<FormattedMessage
id="telemetry.telemetryOptedInDisableUsage"
defaultMessage="disable usage data here"
Expand Down