Skip to content

Commit

Permalink
feat: update category
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Jul 21, 2024
1 parent 62d7a16 commit dfbda01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
7 changes: 7 additions & 0 deletions src/core/utils/default_app_categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,11 @@ export const DEFAULT_APP_CATEGORIES: Record<string, AppCategory> = Object.freeze
}),
order: 8000,
},
manageData: {
id: 'manageData',
label: i18n.translate('core.ui.manageDataNav.label', {
defaultMessage: 'Manage data',
}),
order: 1000,
},
});
7 changes: 2 additions & 5 deletions src/plugins/data_source_management/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,8 @@ export class DataSourceManagementPlugin
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.dataAdministration, [
{
id: DSM_APP_ID_FOR_STANDARD_APPLICATION,
category: {
id: DSM_APP_ID_FOR_STANDARD_APPLICATION,
label: PLUGIN_NAME,
order: 200,
},
category: DEFAULT_APP_CATEGORIES.manageData,
order: 100,
},
]);

Expand Down
8 changes: 0 additions & 8 deletions src/plugins/index_pattern_management/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,6 @@ export class IndexPatternManagementPlugin
},
]);

core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.dataAdministration, [
{
id: IPM_APP_ID,
category: DEFAULT_APP_CATEGORIES.manage,
order: 200,
},
]);

core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.all, [
{
id: IPM_APP_ID,
Expand Down

0 comments on commit dfbda01

Please sign in to comment.