From b3f751a41d43150b6f80993e9cb4399864725338 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 23 Dec 2025 12:10:43 +0000 Subject: [PATCH] Polish: Usage of NodesAPI in NodeModal --- frontend-modern/src/components/Settings/NodeModal.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend-modern/src/components/Settings/NodeModal.tsx b/frontend-modern/src/components/Settings/NodeModal.tsx index 73d1c1c84..29dabb563 100644 --- a/frontend-modern/src/components/Settings/NodeModal.tsx +++ b/frontend-modern/src/components/Settings/NodeModal.tsx @@ -791,14 +791,9 @@ export const NodeModal: Component = (props) => { logger.debug('[Agent Install] Copy button clicked'); try { setLoadingAgentCommand(true); - const { apiFetch } = await import('@/utils/apiClient'); - const response = await apiFetch('/api/agent-install-command', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ - type: 'pve', - enableProxmox: true, - }), + const data = await NodesAPI.getAgentInstallCommand({ + type: 'pve', + enableProxmox: true, }); if (response.ok) {