@orsetra/shared-ui 1.0.52 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -50,7 +50,7 @@ export const menuItems: MainMenuItem[] = [
|
|
|
50
50
|
icon: <Settings className="h-6 w-6" />
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
id: "access
|
|
53
|
+
id: "access",
|
|
54
54
|
label: "Access Manager",
|
|
55
55
|
icon: <Shield className="h-6 w-6" />
|
|
56
56
|
},
|
|
@@ -63,6 +63,6 @@ export const menuLabels: Record<string, string> = {
|
|
|
63
63
|
"runtime": "Runtime",
|
|
64
64
|
"monitoring": "Monitoring",
|
|
65
65
|
"api-manager": "API Manager",
|
|
66
|
-
"access
|
|
66
|
+
"access": "Access Manager",
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -244,16 +244,12 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
244
244
|
const isActive = pathname === item.href || pathname.startsWith(`${item.href}/`)
|
|
245
245
|
|
|
246
246
|
const handleClick = (e: React.MouseEvent) => {
|
|
247
|
-
e.preventDefault()
|
|
248
|
-
console.log('Sidebar handleClick - item.name:', item.name)
|
|
249
|
-
console.log('Sidebar handleClick - item.href:', item.href)
|
|
250
247
|
const href = item.href
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
window.location.href = path
|
|
248
|
+
if (href.startsWith('http://') || href.startsWith('https://')) {
|
|
249
|
+
e.preventDefault()
|
|
250
|
+
const path = new URL(href).pathname
|
|
251
|
+
window.location.href = path
|
|
252
|
+
}
|
|
257
253
|
}
|
|
258
254
|
|
|
259
255
|
return (
|