Skip to content

Commit

Permalink
Add Dashboard management category and move dashboards management plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano committed Feb 8, 2024
1 parent 92d032b commit 99edb97
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/core/utils/default_app_categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,18 @@ export const DEFAULT_APP_CATEGORIES: Record<string, AppCategory> = Object.freeze
order: 4000,
euiIconType: 'logoSecurity',
},
dashboardManagement: {
id: 'wzCategoryDashboardManagement',
label: i18n.translate('core.ui.dashboardManagementNavList.label', {
defaultMessage: 'Dashboard management',
}),
order: 700,
euiIconType: 'dashboardApp',
},
management: {
id: 'management',
label: i18n.translate('core.ui.managementNavList.label', {
defaultMessage: 'Management',
defaultMessage: 'Index management',
}),
order: 5000,
euiIconType: 'managementApp',
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/management/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export class ManagementPlugin implements Plugin<ManagementSetup, ManagementStart
core.application.register({
id: MANAGEMENT_APP_ID,
title: this.title,
order: 9030,
order: 700,
icon: '/ui/logos/opensearch_mark.svg',
category: DEFAULT_APP_CATEGORIES.management,
category: DEFAULT_APP_CATEGORIES.dashboardManagement,
updater$: this.appUpdater,
async mount(params: AppMountParameters) {
const { renderApp } = await import('./application');
Expand Down

0 comments on commit 99edb97

Please sign in to comment.