1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(edge/waitingroom): hide sidebar when disabled [EE-6003] (#10343)

This commit is contained in:
Chaim Lev-Ari 2023-10-05 10:31:08 +03:00 committed by GitHub
parent 20823a7f27
commit 5f9687a361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 3 deletions

View file

@ -25,7 +25,7 @@ export function Sidebar() {
return null;
}
const { EnableEdgeComputeFeatures, LogoURL } = settingsQuery.data;
const { LogoURL } = settingsQuery.data;
return (
/* in the future (when we remove r2a) this should wrap the whole app - to change root styles */
@ -50,7 +50,7 @@ export function Sidebar() {
data-cy="portainerSidebar-home"
/>
<EnvironmentSidebar />
{isAdmin && EnableEdgeComputeFeatures && <EdgeComputeSidebar />}
{isAdmin && <EdgeComputeSidebar />}
<SettingsSidebar isAdmin={isAdmin} isTeamLeader={isTeamLeader} />
</ul>
</div>