Skip to content

Commit

Permalink
adjust enablement message for less privileged users
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiqueclarke committed Apr 28, 2023
1 parent 82be10e commit 6640fe9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,25 @@

import { i18n } from '@kbn/i18n';

export const SYNTHETICS_APP_DISABLED_LABEL = i18n.translate(
'xpack.synthetics.emptyState.enablement.disabled.title',
export const SYNTHETICS_APP_ENABLEMENT_TITLE = i18n.translate(
'xpack.synthetics.emptyState.enablement.title',
{
defaultMessage: 'Synthetics App is disabled',
defaultMessage: 'Monitor the status of your services and applications with Synthetics',
}
);

export const MONITOR_MANAGEMENT_ENABLEMENT_MESSAGE = i18n.translate(
'xpack.synthetics.monitorManagement.emptyState.enablement',
export const MONITOR_MANAGEMENT_DISABLED_MESSAGE = i18n.translate(
'xpack.synthetics.emptyState.enablement.disabledDescription',
{
defaultMessage:
'Enable Synthetics App to run lightweight and real-browser monitors from hosted testing locations around the world. Enabling Synthetics App will generate an API key to allow the Synthetics Service to write back to your Elasticsearch cluster.',
'Run automated checks based on real-browser simulations and lightweight endpoint pings to measure the experience of your users from any location worldwide.',
}
);

export const MONITOR_MANAGEMENT_DISABLED_MESSAGE = i18n.translate(
'xpack.synthetics.emptyState.enablement.disabledDescription',
export const MONITOR_MANAGEMENT_CONTACT_ADMINISTRATOR = i18n.translate(
'xpack.synthetics.emptyState.enablement.contactAdministrator',
{
defaultMessage:
'Synthetics App is currently disabled. Synthetics App allows you to run lightweight and real-browser monitors from hosted testing locations around the world. Synthetics App will be enabled when an admin visits the Synthetics app.',
defaultMessage: 'Only administrators can enable this feature.',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ export const EnablementEmptyState = () => {

return !isEnabled && !loading ? (
<EuiEmptyPrompt
title={<h2>{labels.SYNTHETICS_APP_DISABLED_LABEL}</h2>}
body={<p>{labels.MONITOR_MANAGEMENT_DISABLED_MESSAGE}</p>}
title={<h2>{labels.SYNTHETICS_APP_ENABLEMENT_TITLE}</h2>}
body={
<>
<p>{labels.MONITOR_MANAGEMENT_DISABLED_MESSAGE}</p>
<p>{labels.MONITOR_MANAGEMENT_CONTACT_ADMINISTRATOR}</p>
</>
}
footer={
<>
<EuiTitle size="xxs">
Expand Down

0 comments on commit 6640fe9

Please sign in to comment.