From 703ec864ee20157d3986a881d07074f6725b5302 Mon Sep 17 00:00:00 2001 From: tygao Date: Tue, 24 Dec 2024 16:24:26 +0800 Subject: [PATCH] fix: fix collaborators page on nav when newHomePage is disabled Signed-off-by: tygao --- src/plugins/workspace/public/plugin.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/workspace/public/plugin.ts b/src/plugins/workspace/public/plugin.ts index 0dbf5fe0bb02..4ef84d302a7c 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();