From 8019b1475dc39d3fdca09a165a99a7011fe4f605 Mon Sep 17 00:00:00 2001 From: enzo Date: Sat, 21 Mar 2026 01:20:17 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20utiliser=20/api/proxmox/resources=20pour?= =?UTF-8?q?=20les=20LXC=20(m=C3=AAme=20endpoint=20que=20Proxmox.vue)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/views/Updates.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/Updates.vue b/frontend/src/views/Updates.vue index 999bbe3..233f3db 100644 --- a/frontend/src/views/Updates.vue +++ b/frontend/src/views/Updates.vue @@ -182,17 +182,17 @@ async function loadTargets() { const list: Target[] = [ { id: 'host', name: 'Proxmox Host', status: 'running', packages: null, checking: false, updating: false, showPackages: false, error: null }, ] - const res = await fetch('/api/proxmox/lxc', { + const res = await fetch('/api/proxmox/resources', { headers: { Authorization: `Bearer ${authStore.accessToken}` }, }) if (res.ok) { - const lxcs: any[] = await res.json() || [] - for (const lxc of lxcs) { + const resources: any[] = await res.json() || [] + for (const r of resources.filter((r: any) => r.type === 'lxc')) { list.push({ - id: `lxc:${lxc.vmid}`, - name: lxc.name || `LXC ${lxc.vmid}`, - status: lxc.status, - vmid: lxc.vmid, + id: `lxc:${r.vmid}`, + name: r.name || `LXC ${r.vmid}`, + status: r.status, + vmid: r.vmid, packages: null, checking: false, updating: false,