From 36e1799ec5361c294706fd0c5b0688c347e4b039 Mon Sep 17 00:00:00 2001 From: Benoit Date: Mon, 1 Jun 2026 23:51:01 +0200 Subject: [PATCH] fix: chargement des groupes dans l'onglet Audio pour matrice de routing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajout fetch groupes dans loadAudioDevices() - Fix: matrice de routing maintenant éditable (groupes chargés) - Fix: WebSocket audio-levels connecté (nécessite VITE_WS_AUDIO_LEVELS_URL dans .env) --- client/src/Admin.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/Admin.jsx b/client/src/Admin.jsx index 80b3f99..82f275b 100644 --- a/client/src/Admin.jsx +++ b/client/src/Admin.jsx @@ -108,17 +108,20 @@ function Admin() { }; const loadAudioDevices = async () => { - const [devicesRes, currentDeviceRes, channelNamesRes] = await Promise.all([ + const [devicesRes, currentDeviceRes, channelNamesRes, groupsRes] = await Promise.all([ fetch(`${API_URL}/admin/audio/devices`), fetch(`${API_URL}/admin/audio/device`), - fetch(`${API_URL}/admin/audio/channels/names`) + fetch(`${API_URL}/admin/audio/channels/names`), + fetch(`${API_URL}/admin/groups`) ]); const devicesData = await devicesRes.json(); const currentData = await currentDeviceRes.json(); const channelNamesData = await channelNamesRes.json(); + const groupsData = await groupsRes.json(); setAudioDevices(devicesData.devices || []); + setGroups(groupsData.groups || []); const device = currentData.device || { inputChannels: 8, outputChannels: 8 }; setCurrentDevice(device);