Skip to content

Commit

Permalink
bug fix: hide workspace overview and setting when no workspace (opens…
Browse files Browse the repository at this point in the history
…earch-project#205)

Signed-off-by: yuye-aws <[email protected]>
  • Loading branch information
yuye-aws authored Oct 8, 2023
1 parent 29ccc20 commit 37171cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/workspace/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class WorkspacePlugin implements Plugin<{}, {}, WorkspacePluginSetupDeps>
}),
order: 0,
euiIconType: 'grid',
navLinkStatus: AppNavLinkStatus.default,
navLinkStatus: !!workspaceId ? AppNavLinkStatus.default : AppNavLinkStatus.hidden,
async mount(params: AppMountParameters) {
const { renderOverviewApp } = await import('./application');
return mountWorkspaceApp(params, renderOverviewApp);
Expand All @@ -139,7 +139,7 @@ export class WorkspacePlugin implements Plugin<{}, {}, WorkspacePluginSetupDeps>
defaultMessage: 'Workspace Settings',
}),
euiIconType: 'managementApp',
navLinkStatus: AppNavLinkStatus.default,
navLinkStatus: !!workspaceId ? AppNavLinkStatus.default : AppNavLinkStatus.hidden,
async mount(params: AppMountParameters) {
const { renderUpdateApp } = await import('./application');
return mountWorkspaceApp(params, renderUpdateApp);
Expand Down

0 comments on commit 37171cf

Please sign in to comment.