Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

feat: add Docker icon to settings navigation

rcourtmande403f39be5e
diff --git a/frontend-modern/src/components/Settings/SettingsSectionNav.tsx b/frontend-modern/src/components/Settings/SettingsSectionNav.tsx
index 9c6e5f58d1..39057c5adc 100644
--- a/frontend-modern/src/components/Settings/SettingsSectionNav.tsx
+++ b/frontend-modern/src/components/Settings/SettingsSectionNav.tsx
@@ -3,6 +3,7 @@ import { For } from 'solid-js';
import Server from 'lucide-solid/icons/server';
import HardDrive from 'lucide-solid/icons/hard-drive';
import Mail from 'lucide-solid/icons/mail';
+import { DockerIcon } from '@/components/icons/DockerIcon';
type SettingsSection = 'pve' | 'pbs' | 'pmg' | 'docker' | 'host' | 'podman' | 'kubernetes';
@@ -15,7 +16,7 @@ interface SettingsSectionNavProps {
const allSections: Array<{
id: SettingsSection;
label: string;
- icon: typeof Server;
+ icon: typeof Server | Component<{ class?: string }>;
}> = [
{
id: 'pve',
@@ -32,6 +33,11 @@ const allSections: Array<{
label: 'Mail Gateway',
icon: Mail,
},
+ {
+ id: 'docker',
+ label: 'Docker',
+ icon: DockerIcon,
+ },
];
export const SettingsSectionNav: Component<SettingsSectionNavProps> = (props) => {
@@ -48,6 +54,7 @@ export const SettingsSectionNav: Component<SettingsSectionNavProps> = (props) =>
: `${baseClasses} hover:text-blue-500 dark:hover:text-blue-300 hover:border-blue-300/70 dark:hover:border-blue-500/50`;
const Icon = section.icon;
+ const isDockerIcon = section.id === 'docker';
return (
<button
@@ -56,7 +63,11 @@ export const SettingsSectionNav: Component<SettingsSectionNavProps> = (props) =>
onClick={() => props.onSelect(section.id)}
aria-pressed={isActive}
>
- <Icon size={16} stroke-width={2} />
+ {isDockerIcon ? (
+ <Icon class="w-4 h-4" />
+ ) : (
+ <Icon size={16} stroke-width={2} />
+ )}
<span>{section.label}</span>
</button>
);