diff --git a/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx b/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx index ab2dfb33e..845ca57e1 100644 --- a/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx +++ b/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx @@ -1,14 +1,8 @@ import { Component, For, Show, createMemo } from 'solid-js'; -import type { NodeConfig } from '@/types/nodes'; +import type { NodeConfig, NodeConfigWithStatus } from '@/types/nodes'; import type { Node, PBSInstance, PMGInstance, Host } from '@/types/api'; import { Card } from '@/components/shared/Card'; -type NodeConfigWithStatus = NodeConfig & { - hasPassword?: boolean; - hasToken?: boolean; - status: 'connected' | 'disconnected' | 'offline' | 'error' | 'pending'; -}; - export interface TemperatureTransportInfo { httpMap: Record; socketStatus: 'healthy' | 'error' | 'missing'; @@ -21,11 +15,7 @@ type TemperatureSocketCooldownInfo = { lastError?: string; }; -// Host agent info passed from state -interface HostAgentInfo { - hostname: string; - status: string; -} + interface PveNodesTableProps { nodes: NodeConfigWithStatus[]; diff --git a/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx b/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx index 1de0578b9..8c3d988cf 100644 --- a/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx +++ b/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx @@ -32,13 +32,7 @@ interface DiscoveryScanStatus { errors?: string[]; } -type NodeConfigWithStatus = NodeConfig & { - hasPassword?: boolean; - hasToken?: boolean; - connectionStatus?: 'connected' | 'error' | 'pending' | 'unknown'; - connectionError?: string; - status?: 'connected' | 'error' | 'pending' | 'unknown'; -}; + interface ProxmoxAgentNodesPanelProps { agentType: AgentType;