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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Add pause controls to connection modal footer
rcourtmanb7ec5c77a5e9
diff --git a/frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx b/frontend-modern/src/components/Settings/NodeModalStatusFooter.tsxindex c48413bd76..341ad7c4e6 100644--- a/frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx+++ b/frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx@@ -6,6 +6,9 @@ import { logger } from '@/utils/logger';interface NodeModalStatusFooterProps {modalProps: NodeModalProps;state: NodeModalState;+ onToggleEnabled?: () => void;+ togglePending?: boolean;+ connectionEnabled?: boolean;onDelete?: () => void;deletePending?: boolean;deleteConfirming?: boolean;@@ -130,21 +133,12 @@ export const NodeModalStatusFooter: Component<NodeModalStatusFooterProps> = (pro</Show><div class="flex items-center justify-between px-6 py-4 border-t border-border">- <button- type="button"- onClick={state.handleTestConnection}- disabled={state.isTesting() || props.deletePending}- class="px-4 py-2 text-sm border border-border text-base-content rounded-md hover:bg-surface-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed"- >- {state.isTesting() ? 'Testing...' : 'Test Connection'}- </button>-<div class="flex items-center gap-3"><Show when={state.isEditingExistingNode() && props.onDelete}><buttontype="button"onClick={props.onDelete}- disabled={props.deletePending}+ disabled={props.togglePending || props.deletePending}class={`px-4 py-2 text-sm rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed ${props.deleteConfirming? 'bg-rose-600 text-white hover:bg-rose-700'@@ -158,6 +152,33 @@ export const NodeModalStatusFooter: Component<NodeModalStatusFooterProps> = (pro: 'Delete connection'}</button></Show>+ <button+ type="button"+ onClick={state.handleTestConnection}+ disabled={state.isTesting() || props.togglePending || props.deletePending}+ class="px-4 py-2 text-sm border border-border text-base-content rounded-md hover:bg-surface-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {state.isTesting() ? 'Testing...' : 'Test Connection'}+ </button>+ </div>++ <div class="flex items-center gap-3">+ <Show when={state.isEditingExistingNode() && props.onToggleEnabled}>+ <button+ type="button"+ onClick={props.onToggleEnabled}+ disabled={props.togglePending || props.deletePending}+ class="px-4 py-2 text-sm border border-border text-base-content rounded-md hover:bg-surface-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {props.togglePending+ ? props.connectionEnabled+ ? 'Pausing…'+ : 'Resuming…'+ : props.connectionEnabled+ ? 'Pause connection'+ : 'Resume connection'}+ </button>+ </Show><Show when={modalProps.showBackToDiscovery && modalProps.onBackToDiscovery}><buttontype="button"@@ -184,14 +205,14 @@ export const NodeModalStatusFooter: Component<NodeModalStatusFooterProps> = (pro<buttontype="button"onClick={modalProps.onClose}- disabled={props.deletePending}+ disabled={props.togglePending || props.deletePending}class="px-4 py-2 text-sm border border-border text-base-content rounded-md hover:bg-surface-hover transition-colors">Cancel</button><buttontype="submit"- disabled={props.deletePending}+ disabled={props.togglePending || props.deletePending}class="px-4 py-2 text-sm bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed">{state.isEditingExistingNode() ? 'Update' : 'Add'} Nodediff --git a/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx b/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsxindex 0ccf215543..421ce2ca24 100644--- a/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx@@ -42,6 +42,7 @@ const row = (overrides: Partial<InfrastructureSystemRow> = {}): InfrastructureSycanPause: connection.capabilities.supportsPause,canRemove: connection.type !== 'docker' && connection.type !== 'kubernetes',isAgent: connection.type === 'agent',+ isCluster: false,attachedConnections: [],members: [],connection,