Revert "Hide Settings tab when authentication is not configured"
This reverts commit d5a1e3d07729bad61743e8645a636e2545e11038.
This commit is contained in:
parent
7936808193
commit
88ad986877
2 changed files with 4 additions and 11 deletions
|
|
@ -63,7 +63,6 @@ PROXY_AUTH_LOGOUT_URL=/logout # URL for SSO logout
|
||||||
- **DO NOT** put port configuration here - use system.json or systemd overrides
|
- **DO NOT** put port configuration here - use system.json or systemd overrides
|
||||||
- Copy `.env.example` from the repository for a ready-to-edit template
|
- Copy `.env.example` from the repository for a ready-to-edit template
|
||||||
- Locked out? Create `<data-path>/.auth_recovery`, restart Pulse, and sign in from localhost to reset credentials. Remove the file afterwards.
|
- Locked out? Create `<data-path>/.auth_recovery`, restart Pulse, and sign in from localhost to reset credentials. Remove the file afterwards.
|
||||||
- **UI Behavior:** When authentication is not configured, the Settings tab is automatically hidden from the web interface, providing a cleaner monitoring-only view for unauthenticated deployments.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -897,7 +897,7 @@ function AppLayout(props: {
|
||||||
{ warning: 0, critical: 0 },
|
{ warning: 0, critical: 0 },
|
||||||
);
|
);
|
||||||
const activeAlertCount = breakdown.warning + breakdown.critical;
|
const activeAlertCount = breakdown.warning + breakdown.critical;
|
||||||
const tabs = [
|
return [
|
||||||
{
|
{
|
||||||
id: 'alerts' as const,
|
id: 'alerts' as const,
|
||||||
label: 'Alerts',
|
label: 'Alerts',
|
||||||
|
|
@ -908,11 +908,7 @@ function AppLayout(props: {
|
||||||
breakdown,
|
breakdown,
|
||||||
icon: <BellIcon class="w-4 h-4 shrink-0" />,
|
icon: <BellIcon class="w-4 h-4 shrink-0" />,
|
||||||
},
|
},
|
||||||
];
|
{
|
||||||
|
|
||||||
// Only show Settings tab when authentication is configured
|
|
||||||
if (hasAuth()) {
|
|
||||||
tabs.push({
|
|
||||||
id: 'settings' as const,
|
id: 'settings' as const,
|
||||||
label: 'Settings',
|
label: 'Settings',
|
||||||
route: '/settings',
|
route: '/settings',
|
||||||
|
|
@ -921,10 +917,8 @@ function AppLayout(props: {
|
||||||
count: undefined,
|
count: undefined,
|
||||||
breakdown: undefined,
|
breakdown: undefined,
|
||||||
icon: <SettingsIcon class="w-4 h-4 shrink-0" />,
|
icon: <SettingsIcon class="w-4 h-4 shrink-0" />,
|
||||||
});
|
},
|
||||||
}
|
];
|
||||||
|
|
||||||
return tabs;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const handlePlatformClick = (platform: ReturnType<typeof platformTabs>[number]) => {
|
const handlePlatformClick = (platform: ReturnType<typeof platformTabs>[number]) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue