Skip to content

Commit 3aa6a2c

Browse files
committed
WIP
1 parent a62d693 commit 3aa6a2c

2 files changed

Lines changed: 33 additions & 3 deletions

File tree

x-pack/plugins/monitoring/public/components/no_data/blurbs/cloud_deployment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import { FormattedMessage } from '@kbn/i18n/react';
1111
export const CloudDeployment = () => {
1212
return (
1313
<Fragment>
14-
<EuiTitle size="l">
14+
<EuiTitle size="m">
1515
<h2>
1616
<FormattedMessage
1717
id="xpack.monitoring.noData.blurbs.cloudDeploymentTitle"
18-
defaultMessage="Your monitoring data is not available here."
18+
defaultMessage="Your monitoring data is configured through Cloud."
1919
/>
2020
</h2>
2121
</EuiTitle>

x-pack/plugins/monitoring/public/components/no_data/no_data.js

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { toggleSetupMode } from '../../lib/setup_mode';
2727
import { CheckingSettings } from './checking_settings';
2828
import { ReasonFound, WeTried } from './reasons';
2929
import { CheckerErrors } from './checker_errors';
30+
import { WhatIs, CloudDeployment } from './blurbs';
3031
import { getSafeForExternalLink } from '../../lib/get_safe_for_external_link';
3132

3233
function NoDataMessage(props) {
@@ -45,14 +46,43 @@ function NoDataMessage(props) {
4546

4647
export function NoData(props) {
4748
const [isLoading, setIsLoading] = useState(false);
48-
const [useInternalCollection, setUseInternalCollection] = useState(props.isCloudEnabled);
49+
const [useInternalCollection, setUseInternalCollection] = useState(false);
50+
const isCloudEnabled = props.isCloudEnabled;
4951

5052
async function startSetup() {
5153
setIsLoading(true);
5254
await toggleSetupMode(true);
5355
window.location.hash = getSafeForExternalLink('#/elasticsearch/nodes');
5456
}
5557

58+
if (isCloudEnabled) {
59+
return (
60+
<EuiPage>
61+
<EuiScreenReaderOnly>
62+
<h1>
63+
<FormattedMessage
64+
id="xpack.monitoring.noData.cloud.heading"
65+
defaultMessage="No monitoring data found."
66+
/>
67+
</h1>
68+
</EuiScreenReaderOnly>
69+
<EuiPageBody restrictWidth={600}>
70+
<EuiPageContent
71+
verticalPosition="center"
72+
horizontalPosition="center"
73+
className="eui-textCenter"
74+
>
75+
<EuiIcon type="monitoringApp" size="xxl" />
76+
<EuiSpacer size="m" />
77+
<WhatIs />
78+
<EuiHorizontalRule size="half" />
79+
<CloudDeployment />
80+
</EuiPageContent>
81+
</EuiPageBody>
82+
</EuiPage>
83+
);
84+
}
85+
5686
if (useInternalCollection) {
5787
return (
5888
<EuiPage>

0 commit comments

Comments
 (0)