Skip to content

Commit

Permalink
feat: update category (opensearch-project#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuZhou-Joe authored Sep 26, 2024
1 parent 26b12d1 commit 9402888
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 9402888

Please sign in to comment.