diff --git a/frontend/dashboard.html b/frontend/dashboard.html index 9eaf25e..1fed257 100644 --- a/frontend/dashboard.html +++ b/frontend/dashboard.html @@ -23,26 +23,6 @@
- -
-
-
-

Paramètres

- -
-
-

Sécurité du compte

-
{{ settingsMessage }}
-
-
-
- -
-
-
-
-
+

Épinglés

    @@ -84,14 +64,14 @@
- +
@@ -137,7 +117,7 @@ -
+

Configuration Système

@@ -198,7 +178,7 @@
-
+

Modèles & Finances API

@@ -253,86 +233,89 @@
- - +
@@ -405,12 +388,13 @@ if(res.ok) { await fetchModelsInfo(); await fetchFinances(); - alert("Synchronisation terminée !"); + alert("Synchronisation réussie !"); } else { - const err = await res.json(); - alert("Erreur: " + err.detail); + let errText = await res.text(); + try { const errObj = JSON.parse(errText); errText = errObj.detail || errText; } catch(e){} + alert("Erreur retournée par le serveur : " + errText); } - } catch(e) { alert("Erreur réseau de synchronisation."); } + } catch(e) { alert("Erreur réseau: impossible de contacter le serveur (" + e.message + ")."); } isSyncing.value = false; }; @@ -448,7 +432,7 @@ if (response.ok) { const data = await response.json(); if (Array.isArray(data)) messages.value = data; - await fetchFinances(); // MAJ du budget sous le nom + await fetchFinances(); } else { const err = await response.json(); alert("Erreur API IA : " + err.detail); }