mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-12 05:36:38 +00:00
if one logs dont show nested
This commit is contained in:
@@ -1517,8 +1517,8 @@
|
||||
"resourceEditDomain": "Edit Domain",
|
||||
"siteName": "Site Name",
|
||||
"proxyPort": "Port",
|
||||
"resourcesTableProxyResources": "Proxy Resources",
|
||||
"resourcesTableClientResources": "Client Resources",
|
||||
"resourcesTableProxyResources": "Public",
|
||||
"resourcesTableClientResources": "Private",
|
||||
"resourcesTableNoProxyResourcesFound": "No proxy resources found.",
|
||||
"resourcesTableNoInternalResourcesFound": "No internal resources found.",
|
||||
"resourcesTableDestination": "Destination",
|
||||
|
||||
@@ -126,11 +126,8 @@ export const orgNavSections = (
|
||||
},
|
||||
{
|
||||
heading: "Analytics",
|
||||
items: [
|
||||
{
|
||||
title: "sidebarLogs",
|
||||
icon: <Logs className="h-4 w-4" />,
|
||||
items: [
|
||||
items: (() => {
|
||||
const logItems: SidebarNavItem[] = [
|
||||
{
|
||||
title: "sidebarLogsRequest",
|
||||
href: "/{orgId}/settings/logs/request",
|
||||
@@ -150,9 +147,22 @@ export const orgNavSections = (
|
||||
}
|
||||
]
|
||||
: [])
|
||||
]
|
||||
];
|
||||
|
||||
// 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",
|
||||
|
||||
Reference in New Issue
Block a user