diff --git a/changelogs/fragments/9116.yml b/changelogs/fragments/9116.yml new file mode 100644 index 00000000000..c33970d01a1 --- /dev/null +++ b/changelogs/fragments/9116.yml @@ -0,0 +1,2 @@ +fix: +- Hide collaborators page on nav when newHomePage is disabled ([#9116](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/9116)) \ No newline at end of file diff --git a/src/plugins/workspace/public/plugin.ts b/src/plugins/workspace/public/plugin.ts index 0dbf5fe0bb0..4ef84d302a7 100644 --- a/src/plugins/workspace/public/plugin.ts +++ b/src/plugins/workspace/public/plugin.ts @@ -596,7 +596,12 @@ export class WorkspacePlugin this.coreStart = core; const isPermissionEnabled = core?.application?.capabilities.workspaces.permissionEnabled; this.collaboratorsAppUpdater$.next(() => { - return { status: isPermissionEnabled ? AppStatus.accessible : AppStatus.inaccessible }; + return { + status: isPermissionEnabled ? AppStatus.accessible : AppStatus.inaccessible, + navLinkStatus: core.chrome.navGroup.getNavGroupEnabled() + ? AppNavLinkStatus.visible + : AppNavLinkStatus.hidden, + }; }); this.currentWorkspaceIdSubscription = this._changeSavedObjectCurrentWorkspace();