mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 17:27:40 +00:00
Merge pull request #3023 from Infisical/fix-org-sidebar-check
Fix: Correct Display Org Sidebar Check
This commit is contained in:
@@ -32,16 +32,18 @@ export const OrganizationLayout = () => {
|
|||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const shouldShowOrgSidebar = !(
|
const shouldShowOrgSidebar =
|
||||||
[
|
location.pathname.startsWith("/organization") &&
|
||||||
linkOptions({ to: "/organization/secret-manager/overview" }).to,
|
!(
|
||||||
linkOptions({ to: "/organization/cert-manager/overview" }).to,
|
[
|
||||||
linkOptions({ to: "/organization/ssh/overview" }).to,
|
linkOptions({ to: "/organization/secret-manager/overview" }).to,
|
||||||
linkOptions({ to: "/organization/kms/overview" }).to,
|
linkOptions({ to: "/organization/cert-manager/overview" }).to,
|
||||||
linkOptions({ to: "/organization/secret-scanning" }).to,
|
linkOptions({ to: "/organization/ssh/overview" }).to,
|
||||||
linkOptions({ to: "/organization/secret-sharing" }).to
|
linkOptions({ to: "/organization/kms/overview" }).to,
|
||||||
] as string[]
|
linkOptions({ to: "/organization/secret-scanning" }).to,
|
||||||
).includes(location.pathname);
|
linkOptions({ to: "/organization/secret-sharing" }).to
|
||||||
|
] as string[]
|
||||||
|
).includes(location.pathname);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user