1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(ui): fix users teams missing from menu for teamlead EE-3761 (#7381)

* fix users & teams missing from menu for teamlead
This commit is contained in:
Richard Wei 2022-08-04 09:23:38 +12:00 committed by GitHub
parent a46002502f
commit 31d3fd730c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -16,7 +16,7 @@ import { SidebarProvider } from './useSidebarState';
export function Sidebar() {
const { isAdmin, user } = useUser();
const isTeamLeader = useIsTeamLeader(user);
const isTeamLeader = useIsTeamLeader(user) as boolean;
const settingsQuery = usePublicSettings();
@ -52,7 +52,9 @@ export function Sidebar() {
{isAdmin && EnableEdgeComputeFeatures && <EdgeComputeSidebar />}
{(isAdmin || isTeamLeader) && <SettingsSidebar isAdmin={isAdmin} />}
{(isAdmin || isTeamLeader) && (
<SettingsSidebar isAdmin={isAdmin} isTeamLeader={isTeamLeader} />
)}
</ul>
</div>