Skip to content

Commit d199322

Browse files
feat: update category (#883) (#884)
(cherry picked from commit 9402888) Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
1 parent 71c3842 commit d199322

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

public/plugin.ts

+45-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,19 @@ export class AnomalyDetectionOpenSearchDashboardsPlugin
113113
id: PLUGIN_NAME,
114114
category: DEFAULT_APP_CATEGORIES.detect,
115115
}
116-
])
116+
]);
117+
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.all, [
118+
{
119+
id: PLUGIN_NAME,
120+
category: DEFAULT_APP_CATEGORIES.detect,
121+
}
122+
]);
123+
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS['security-analytics'], [
124+
{
125+
id: PLUGIN_NAME,
126+
category: DEFAULT_APP_CATEGORIES.detect,
127+
}
128+
]);
117129

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

190+
core.chrome.navGroup.addNavLinksToGroup(
191+
DEFAULT_NAV_GROUPS.all,
192+
[{
193+
id: OVERVIEW_PAGE_NAV_ID,
194+
parentNavLinkId: PLUGIN_NAME
195+
},
196+
{
197+
id: DASHBOARD_PAGE_NAV_ID,
198+
parentNavLinkId: PLUGIN_NAME
199+
},
200+
{
201+
id: DETECTORS_PAGE_NAV_ID,
202+
parentNavLinkId: PLUGIN_NAME
203+
}]
204+
);
205+
206+
core.chrome.navGroup.addNavLinksToGroup(
207+
DEFAULT_NAV_GROUPS['security-analytics'],
208+
[{
209+
id: OVERVIEW_PAGE_NAV_ID,
210+
parentNavLinkId: PLUGIN_NAME
211+
},
212+
{
213+
id: DASHBOARD_PAGE_NAV_ID,
214+
parentNavLinkId: PLUGIN_NAME
215+
},
216+
{
217+
id: DETECTORS_PAGE_NAV_ID,
218+
parentNavLinkId: PLUGIN_NAME
219+
}]
220+
);
221+
178222
setUISettings(core.uiSettings);
179223

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

0 commit comments

Comments
 (0)