Skip to content

Commit

Permalink
fix: fix collaborators page on nav when newHomePage is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: tygao <[email protected]>
  • Loading branch information
raintygao committed Dec 24, 2024
1 parent b1113f4 commit 703ec86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plugins/workspace/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 703ec86

Please sign in to comment.