Polish: Usage of NodesAPI in NodeModal

This commit is contained in:
rcourtman
2025-12-23 12:10:43 +00:00
parent c8f4705c5c
commit 8e4e2d4af2
@@ -791,14 +791,9 @@ export const NodeModal: Component<NodeModalProps> = (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) {