-
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.
[SIEM] Update Empty Page Messages (#37251)
* update EmptyPage comp and text on all pages * change proptype from `string` to `IconType` * update tests and snapshots * remove translation imports * restore `align-self` styles for IE11 centering * proper apostrophe and string in single quotes, per frank * update host and ip details * DRYing up host and network empty page message * fix localization * fixing localization again
- Loading branch information
Michael Marcialis
authored
May 29, 2019
1 parent
38eb16d
commit 78afde9
Showing
19 changed files
with
207 additions
and
137 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
x-pack/plugins/siem/public/components/empty_page/__snapshots__/index.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
30 changes: 30 additions & 0 deletions
30
x-pack/plugins/siem/public/pages/hosts/hosts_empty_page.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,30 @@ | ||
/* | ||
* 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 React from 'react'; | ||
import { pure } from 'recompose'; | ||
import chrome from 'ui/chrome'; | ||
import { documentationLinks } from 'ui/documentation_links'; | ||
|
||
import { EmptyPage } from '../../components/empty_page'; | ||
|
||
import * as i18n from './translations'; | ||
|
||
const basePath = chrome.getBasePath(); | ||
|
||
export const HostsEmptyPage = pure(() => ( | ||
<EmptyPage | ||
actionPrimaryIcon="gear" | ||
actionPrimaryLabel={i18n.EMPTY_ACTION_PRIMARY} | ||
actionPrimaryUrl={`${basePath}/app/kibana#/home/tutorial_directory/security`} | ||
actionSecondaryIcon="popout" | ||
actionSecondaryLabel={i18n.EMPTY_ACTION_SECONDARY} | ||
actionSecondaryTarget="_blank" | ||
actionSecondaryUrl={documentationLinks.siem} | ||
data-test-subj="empty-page" | ||
title={i18n.EMPTY_TITLE} | ||
/> | ||
)); |
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
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
Oops, something went wrong.