mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 02:36:38 +00:00
if one logs dont show nested
This commit is contained in:
@@ -1517,8 +1517,8 @@
|
|||||||
"resourceEditDomain": "Edit Domain",
|
"resourceEditDomain": "Edit Domain",
|
||||||
"siteName": "Site Name",
|
"siteName": "Site Name",
|
||||||
"proxyPort": "Port",
|
"proxyPort": "Port",
|
||||||
"resourcesTableProxyResources": "Proxy Resources",
|
"resourcesTableProxyResources": "Public",
|
||||||
"resourcesTableClientResources": "Client Resources",
|
"resourcesTableClientResources": "Private",
|
||||||
"resourcesTableNoProxyResourcesFound": "No proxy resources found.",
|
"resourcesTableNoProxyResourcesFound": "No proxy resources found.",
|
||||||
"resourcesTableNoInternalResourcesFound": "No internal resources found.",
|
"resourcesTableNoInternalResourcesFound": "No internal resources found.",
|
||||||
"resourcesTableDestination": "Destination",
|
"resourcesTableDestination": "Destination",
|
||||||
|
|||||||
@@ -126,33 +126,43 @@ export const orgNavSections = (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
heading: "Analytics",
|
heading: "Analytics",
|
||||||
items: [
|
items: (() => {
|
||||||
{
|
const logItems: SidebarNavItem[] = [
|
||||||
title: "sidebarLogs",
|
{
|
||||||
icon: <Logs className="h-4 w-4" />,
|
title: "sidebarLogsRequest",
|
||||||
items: [
|
href: "/{orgId}/settings/logs/request",
|
||||||
{
|
icon: <SquareMousePointer className="h-4 w-4" />
|
||||||
title: "sidebarLogsRequest",
|
},
|
||||||
href: "/{orgId}/settings/logs/request",
|
...(build != "oss"
|
||||||
icon: <SquareMousePointer className="h-4 w-4" />
|
? [
|
||||||
},
|
{
|
||||||
...(build != "oss"
|
title: "sidebarLogsAccess",
|
||||||
? [
|
href: "/{orgId}/settings/logs/access",
|
||||||
{
|
icon: <ScanEye className="h-4 w-4" />
|
||||||
title: "sidebarLogsAccess",
|
},
|
||||||
href: "/{orgId}/settings/logs/access",
|
{
|
||||||
icon: <ScanEye className="h-4 w-4" />
|
title: "sidebarLogsAction",
|
||||||
},
|
href: "/{orgId}/settings/logs/action",
|
||||||
{
|
icon: <Logs className="h-4 w-4" />
|
||||||
title: "sidebarLogsAction",
|
}
|
||||||
href: "/{orgId}/settings/logs/action",
|
]
|
||||||
icon: <Logs className="h-4 w-4" />
|
: [])
|
||||||
}
|
];
|
||||||
]
|
|
||||||
: [])
|
// If only one log item, return it directly without grouping
|
||||||
]
|
if (logItems.length === 1) {
|
||||||
|
return logItems;
|
||||||
}
|
}
|
||||||
]
|
|
||||||
|
// If multiple log items, create a group
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
title: "sidebarLogs",
|
||||||
|
icon: <Logs className="h-4 w-4" />,
|
||||||
|
items: logItems
|
||||||
|
}
|
||||||
|
];
|
||||||
|
})()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
heading: "Organization",
|
heading: "Organization",
|
||||||
|
|||||||
Reference in New Issue
Block a user