From 8f8ecfd75a9be9555c6bb47729860a57c7ae8665 Mon Sep 17 00:00:00 2001 From: Tianyu Gao Date: Thu, 12 Sep 2024 14:23:18 +0800 Subject: [PATCH] [Workspace][Navigation] fix: hide workspace detail title in old nav (#8151) * hide workspace detail in new nav Signed-off-by: tygao * Changeset file for PR #8151 created/updated * Changeset file for PR #8151 created/updated --------- Signed-off-by: tygao Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/8151.yml | 2 ++ src/plugins/workspace/public/plugin.ts | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/8151.yml diff --git a/changelogs/fragments/8151.yml b/changelogs/fragments/8151.yml new file mode 100644 index 000000000000..0e045a2d4476 --- /dev/null +++ b/changelogs/fragments/8151.yml @@ -0,0 +1,2 @@ +fix: +- Remove workspace detail title in navigation when new nav is disabled ([#8151](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8151)) \ No newline at end of file diff --git a/src/plugins/workspace/public/plugin.ts b/src/plugins/workspace/public/plugin.ts index ab390b71733a..ef9906f1935d 100644 --- a/src/plugins/workspace/public/plugin.ts +++ b/src/plugins/workspace/public/plugin.ts @@ -373,6 +373,9 @@ export class WorkspacePlugin title: i18n.translate('workspace.settings.workspaceDetail', { defaultMessage: 'Workspace Detail', }), + navLinkStatus: core.chrome.navGroup.getNavGroupEnabled() + ? AppNavLinkStatus.visible + : AppNavLinkStatus.hidden, async mount(params: AppMountParameters) { const { renderDetailApp } = await import('./application'); return mountWorkspaceApp(params, renderDetailApp);