Skip to content

Commit

Permalink
feat: update category (#883) (#884)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9402888)

Co-authored-by: SuZhou-Joe <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and SuZhou-Joe authored Sep 26, 2024
1 parent 71c3842 commit d199322
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 d199322

Please sign in to comment.