diff --git a/frontend-modern/src/components/Dashboard/Dashboard.tsx b/frontend-modern/src/components/Dashboard/Dashboard.tsx index b50c4fbd9..986c1cfed 100644 --- a/frontend-modern/src/components/Dashboard/Dashboard.tsx +++ b/frontend-modern/src/components/Dashboard/Dashboard.tsx @@ -1,4 +1,4 @@ -import { createSignal, createMemo, createEffect, For, Show, onMount } from 'solid-js'; +import { createSignal, createMemo, createEffect, For, Show } from 'solid-js'; import type { VM, Container, Node } from '@/types/api'; import { GuestRow } from './GuestRow'; import NodeCard from './NodeCard'; @@ -9,7 +9,6 @@ import { createTooltipSystem, showTooltip, hideTooltip } from '@/components/shar import { ComponentErrorBoundary } from '@/components/ErrorBoundary'; import { ScrollableTable } from '@/components/shared/ScrollableTable'; import { parseFilterStack, evaluateFilterStack } from '@/utils/searchQuery'; -import { AlertsAPI } from '@/api/alerts'; interface DashboardProps { vms: VM[]; @@ -25,7 +24,6 @@ export function Dashboard(props: DashboardProps) { const { connected, activeAlerts, initialDataReceived } = useWebSocket(); const [search, setSearch] = createSignal(''); const [isSearchLocked, setIsSearchLocked] = createSignal(false); - const [alertOverrides, setAlertOverrides] = createSignal>({}); // Initialize from localStorage with proper type checking const storedViewMode = localStorage.getItem('dashboardViewMode'); @@ -51,17 +49,6 @@ export function Dashboard(props: DashboardProps) { // Create tooltip system const TooltipComponent = createTooltipSystem(); - // Load alert overrides on mount - onMount(async () => { - try { - const config = await AlertsAPI.getConfig(); - if (config.overrides) { - setAlertOverrides(config.overrides); - } - } catch (err) { - console.error('Failed to load alert overrides:', err); - } - }); // Create a mapping from node name to host URL @@ -761,14 +748,11 @@ export function Dashboard(props: DashboardProps) { {(() => { const guestId = guest.id || `${guest.instance}-${guest.name}-${guest.vmid}`; - const override = alertOverrides()[guestId]; return ( ); })()} diff --git a/frontend-modern/src/components/Dashboard/GuestRow.tsx b/frontend-modern/src/components/Dashboard/GuestRow.tsx index 94ca7df73..a46872900 100644 --- a/frontend-modern/src/components/Dashboard/GuestRow.tsx +++ b/frontend-modern/src/components/Dashboard/GuestRow.tsx @@ -27,8 +27,6 @@ interface GuestRowProps { alertCount: number; severity: 'critical' | 'warning' | null; }; - hasOverride?: boolean; - overrideDisabled?: boolean; customUrl?: string; } @@ -119,28 +117,6 @@ export function GuestRow(props: GuestRowProps) { - - {/* Override indicator */} - -
- - {/* Settings/cog icon for custom thresholds */} - - - }> - - {/* Outline bell with slash for disabled alerts */} - - - - -
-
- {/* Alert indicators */}