-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To be shown when fetching returns no elements. Match the style of the license prompt.
- Loading branch information
Showing
3 changed files
with
136 additions
and
33 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
x-pack/plugins/apm/public/components/app/ServiceMap/empty_prompt.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { EuiEmptyPrompt } from '@elastic/eui'; | ||
import { i18n } from '@kbn/i18n'; | ||
import React from 'react'; | ||
import { SetupInstructionsLink } from '../../shared/Links/SetupInstructionsLink'; | ||
|
||
export function EmptyPrompt() { | ||
return ( | ||
<EuiEmptyPrompt | ||
iconType="eyeClosed" | ||
iconColor="subdued" | ||
title={ | ||
<h2> | ||
{i18n.translate('xpack.apm.serviceMap.noServicesPromptTitle', { | ||
defaultMessage: 'No services available', | ||
})} | ||
</h2> | ||
} | ||
body={ | ||
<p> | ||
{i18n.translate('xpack.apm.serviceMap.noServicesPromptDescription', { | ||
defaultMessage: | ||
'We can’t find any services to map within the currently selected time range and environment. Please try another range or check the environment selected. If you don’t have any services, please use our setup instructions to get started.', | ||
})} | ||
</p> | ||
} | ||
actions={<SetupInstructionsLink buttonFill={true} />} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters