Skip to content

Commit

Permalink
csp-app-is-now-hidden (elastic#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSh authored and orouz committed Dec 21, 2021
1 parent 355a486 commit ddc6a83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion x-pack/plugins/cloud_security_posture/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

import type { AppMountParameters, CoreSetup, CoreStart, Plugin } from '../../../../src/core/public';
import type { CspSetup, CspStart, CspPluginSetup, CspPluginStart } from './types';
import { AppNavLinkStatus, AppStatus } from '../../../../src/core/public';
import type { CspPluginSetup, CspPluginStart, CspSetup, CspStart } from './types';
import { PLUGIN_NAME } from '../common';

export class CspPlugin implements Plugin<CspSetup, CspStart, CspPluginSetup, CspPluginStart> {
Expand All @@ -17,6 +18,8 @@ export class CspPlugin implements Plugin<CspSetup, CspStart, CspPluginSetup, Csp
core.application.register({
id: 'csp_root',
title: PLUGIN_NAME,
status: AppStatus.accessible,
navLinkStatus: AppNavLinkStatus.hidden,
async mount(params: AppMountParameters) {
// Load application bundle
const { renderApp } = await import('./application/index');
Expand Down
10 changes: 8 additions & 2 deletions x-pack/plugins/security_solution/public/app/deep_links/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import { get } from 'lodash';
import { LicenseType } from '../../../../licensing/common/types';
import { getCasesDeepLinks } from '../../../../cases/public';
import { SecurityPageName, CloudPosturePage } from '../types';
import { AppDeepLink, AppNavLinkStatus, Capabilities } from '../../../../../../src/core/public';
import {
AppDeepLink,
AppNavLinkStatus,
AppStatus,
Capabilities,
} from '../../../../../../src/core/public';
import {
OVERVIEW,
DETECT,
Expand Down Expand Up @@ -351,7 +356,8 @@ export const securitySolutionsDeepLinks: SecuritySolutionDeepLink[] = [
id: SecurityPageName.cloud_posture,
title: 'Cloud Posture',
path: CSP_ROOT_PATH,
navLinkStatus: AppNavLinkStatus.visible,
status: AppStatus.accessible,
navLinkStatus: AppNavLinkStatus.hidden,
keywords: [],
deepLinks: [
{
Expand Down

0 comments on commit ddc6a83

Please sign in to comment.