Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Jun 23, 2020
1 parent ae6d72d commit 92def42
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
APP_TIMELINES_PATH,
APP_CASES_PATH,
APP_MANAGEMENT_PATH,
APP_ENDPOINT_ALERTS_PATH,
} from '../../../common/constants';

export const navTabs: SiemNavTab = {
Expand Down Expand Up @@ -68,4 +69,11 @@ export const navTabs: SiemNavTab = {
disabled: false,
urlKey: SecurityPageName.management,
},
[SecurityPageName.endpointAlerts]: {
id: SecurityPageName.endpointAlerts,
name: 'Endpoint Alerts', // No Need of i18n since, it is just temporary
href: APP_ENDPOINT_ALERTS_PATH,
disabled: false,
urlKey: SecurityPageName.management, // Just to make type happy, this should go away soon
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export type SiemNavTabKey =
| SecurityPageName.alerts
| SecurityPageName.timelines
| SecurityPageName.case
| SecurityPageName.management;
| SecurityPageName.management
| SecurityPageName.endpointAlerts;

export type SiemNavTab = Record<SiemNavTabKey, NavTab>;

Expand Down

0 comments on commit 92def42

Please sign in to comment.