Skip to content

Commit

Permalink
fix small comments
Browse files Browse the repository at this point in the history
  • Loading branch information
parkiino committed Jul 8, 2020
1 parent 570834f commit cfeb658
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const navTabs: SiemNavTab = {
},
[SecurityPageName.alerts]: {
id: SecurityPageName.alerts,
name: i18n.Alerts,
name: i18n.ALERTS,
href: APP_ALERTS_PATH,
disabled: false,
urlKey: 'alerts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DETECTION_ENGINE = i18n.translate(
}
);

export const Alerts = i18n.translate('xpack.securitySolution.navigation.alerts', {
export const ALERTS = i18n.translate('xpack.securitySolution.navigation.alerts', {
defaultMessage: 'Alerts',
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const HostsEmptyState = React.memo<{
headerComponent={
<FormattedMessage
id="xpack.securitySolution.endpoint.hostList.noHostsPrompt"
defaultMessage="You have a policy, but no Hosts are deployed!"
defaultMessage="You have a policy, but no hosts are deployed!"
/>
}
bodyComponent={
Expand Down
35 changes: 17 additions & 18 deletions x-pack/plugins/security_solution/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ import { ConfigureEndpointPackageConfig } from './management/pages/policy/view/i
import { State, createStore, createInitialState } from './common/store';
import { SecurityPageName } from './app/types';
import { manageOldSiemRoutes } from './helpers';
import {
OVERVIEW,
HOSTS,
NETWORK,
TIMELINES,
ALERTS,
CASE,
ADMINISTRATION,
} from './app/home/translations';

export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, StartPlugins> {
private kibanaVersion: string;
Expand Down Expand Up @@ -100,7 +109,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
}),
appRoute: APP_PATH,
navLinkStatus: AppNavLinkStatus.hidden,
mount: async (params: AppMountParameters) => {
mount: async () => {
const [{ application }] = await core.getStartServices();
application.navigateToApp(`${APP_ID}:${SecurityPageName.overview}`, { replace: true });
return () => true;
Expand All @@ -109,9 +118,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S

core.application.register({
id: `${APP_ID}:${SecurityPageName.overview}`,
title: i18n.translate('xpack.securitySolution.overviewPage.title', {
defaultMessage: 'Overview',
}),
title: OVERVIEW,
order: 9000,
euiIconType: APP_ICON,
category: DEFAULT_APP_CATEGORIES.security,
Expand Down Expand Up @@ -139,9 +146,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S

core.application.register({
id: `${APP_ID}:${SecurityPageName.alerts}`,
title: i18n.translate('xpack.securitySolution.alertsPage.title', {
defaultMessage: 'Alerts',
}),
title: ALERTS,
order: 9001,
euiIconType: APP_ICON,
category: DEFAULT_APP_CATEGORIES.security,
Expand All @@ -168,7 +173,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S

core.application.register({
id: `${APP_ID}:${SecurityPageName.hosts}`,
title: i18n.translate('xpack.securitySolution.hostsPage.title', { defaultMessage: 'Hosts' }),
title: HOSTS,
order: 9002,
euiIconType: APP_ICON,
category: DEFAULT_APP_CATEGORIES.security,
Expand All @@ -195,9 +200,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S

core.application.register({
id: `${APP_ID}:${SecurityPageName.network}`,
title: i18n.translate('xpack.securitySolution.networkPage.title', {
defaultMessage: 'Network',
}),
title: NETWORK,
order: 9002,
euiIconType: APP_ICON,
category: DEFAULT_APP_CATEGORIES.security,
Expand All @@ -224,9 +227,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S

core.application.register({
id: `${APP_ID}:${SecurityPageName.timelines}`,
title: i18n.translate('xpack.securitySolution.timelinesPage.title', {
defaultMessage: 'Timelines',
}),
title: TIMELINES,
order: 9002,
euiIconType: APP_ICON,
category: DEFAULT_APP_CATEGORIES.security,
Expand All @@ -253,7 +254,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S

core.application.register({
id: `${APP_ID}:${SecurityPageName.case}`,
title: 'Cases',
title: CASE,
order: 9002,
euiIconType: APP_ICON,
category: DEFAULT_APP_CATEGORIES.security,
Expand All @@ -280,9 +281,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S

core.application.register({
id: `${APP_ID}:${SecurityPageName.management}`,
title: i18n.translate('xpack.securitySolution.administrationPage.title', {
defaultMessage: 'Administration',
}),
title: ADMINISTRATION,
order: 9002,
euiIconType: APP_ICON,
category: DEFAULT_APP_CATEGORIES.security,
Expand Down

0 comments on commit cfeb658

Please sign in to comment.