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:
parent
a46002502f
commit
31d3fd730c
2 changed files with 7 additions and 4 deletions
|
@ -14,15 +14,16 @@ import { SidebarSection } from './SidebarSection';
|
|||
|
||||
interface Props {
|
||||
isAdmin: boolean;
|
||||
isTeamLeader?: boolean;
|
||||
}
|
||||
|
||||
export function SettingsSidebar({ isAdmin }: Props) {
|
||||
export function SettingsSidebar({ isAdmin, isTeamLeader }: Props) {
|
||||
const teamSyncQuery = usePublicSettings<boolean>({
|
||||
select: (settings) => settings.TeamSync,
|
||||
});
|
||||
|
||||
const showUsersSection =
|
||||
!window.ddExtension && (isAdmin || teamSyncQuery.data);
|
||||
!window.ddExtension && (isAdmin || (isTeamLeader && !teamSyncQuery.data));
|
||||
|
||||
return (
|
||||
<SidebarSection title="Settings">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue