Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(cherry picked from commit 9402888)

Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
2 people authored and Zhou Su committed Oct 15, 2024
1 parent 13c4814 commit 772f2c6
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,19 @@ export class AnomalyDetectionOpenSearchDashboardsPlugin
id: PLUGIN_NAME,
category: DEFAULT_APP_CATEGORIES.detect,
}
])
]);
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.all, [
{
id: PLUGIN_NAME,
category: DEFAULT_APP_CATEGORIES.detect,
}
]);
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS['security-analytics'], [
{
id: PLUGIN_NAME,
category: DEFAULT_APP_CATEGORIES.detect,
}
]);

// register sub applications as standard OSD applications with use case
if (core.chrome.navGroup.getNavGroupEnabled()) {
Expand Down Expand Up @@ -175,6 +187,38 @@ export class AnomalyDetectionOpenSearchDashboardsPlugin
}]
);

core.chrome.navGroup.addNavLinksToGroup(
DEFAULT_NAV_GROUPS.all,
[{
id: OVERVIEW_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
},
{
id: DASHBOARD_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
},
{
id: DETECTORS_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
}]
);

core.chrome.navGroup.addNavLinksToGroup(
DEFAULT_NAV_GROUPS['security-analytics'],
[{
id: OVERVIEW_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
},
{
id: DASHBOARD_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
},
{
id: DETECTORS_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
}]
);

setUISettings(core.uiSettings);

// Set the HTTP client so it can be pulled into expression fns to make
Expand Down

0 comments on commit 772f2c6

Please sign in to comment.