Skip to content

Commit

Permalink
rename workspace_nav_category to workspace_app_category
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
  • Loading branch information
yuye-aws committed Aug 1, 2023
1 parent c71f29c commit 0a43174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/workspace/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const PATHS = {
export const WORKSPACE_OP_TYPE_CREATE = 'create';
export const WORKSPACE_OP_TYPE_UPDATE = 'update';

export const WORKSPACE_NAV_CATEGORY: AppCategory = {
export const WORKSPACE_APP_CATEGORY: AppCategory = {
id: 'workspace',
label: i18n.translate('core.ui.workspaceNavList.label', {
defaultMessage: 'Workspaces',
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/workspace/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
WorkspacesStart,
DEFAULT_APP_CATEGORIES,
} from '../../../core/public';
import { PATHS, WORKSPACE_APP_ID, WORKSPACE_NAV_CATEGORY } from '../common/constants';
import { PATHS, WORKSPACE_APP_ID, WORKSPACE_APP_CATEGORY } from '../common/constants';
import { mountDropdownList } from './mount';
import { SavedObjectsManagementPluginSetup } from '../../saved_objects_management/public';
import { getWorkspaceColumn } from './components/utils/workspace_column';
Expand Down Expand Up @@ -186,7 +186,7 @@ export class WorkspacesPlugin implements Plugin<{}, {}, WorkspacesPluginSetupDep
disabled: false,
baseUrl: url,
href: url,
category: WORKSPACE_NAV_CATEGORY,
category: WORKSPACE_APP_CATEGORY,
title: i18n.translate('core.ui.workspaceNavList.workspaceName', {
defaultMessage: workspace.name,
}),
Expand All @@ -210,7 +210,7 @@ export class WorkspacesPlugin implements Plugin<{}, {}, WorkspacesPluginSetupDep
) {
const outsideWorkspaceCategoryIds = new Set<string>([
DEFAULT_APP_CATEGORIES.management.id,
WORKSPACE_NAV_CATEGORY.id,
WORKSPACE_APP_CATEGORY.id,
]);
if (!workspace) {
return allNavLinks.filter(
Expand Down

0 comments on commit 0a43174

Please sign in to comment.