fix(dashboard): servir le ZIP Lea complet autoportant à l'enrôlement Fleet
L'endpoint /api/fleet/download/<machine_id> servait deploy/Lea_v1.0.0.zip (sources seules, suppose Python système) → installation impossible chez un utilisateur non-IT sans Python. Désormais il sert en priorité le ZIP complet deploy/build/Lea_full_v1.0.1.zip (python-embed inclus), avec fallback sur l'ancien ZIP léger s'il est seul. Résolution du template à la volée (le ZIP complet peut être buildé après le démarrage du dashboard) + message d'erreur explicite. L'injection de Lea/config.txt est inchangée. Le title du bouton de téléchargement ne ment plus : 'installation autonome, sans Python — dézipper puis double-cliquer Lea.bat'. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2290,7 +2290,7 @@
|
||||
: '<span style="display:inline-block;padding:3px 10px;border-radius:12px;font-size:11px;font-weight:600;background:rgba(100,116,139,0.15);color:#64748b;">révoqué</span>';
|
||||
|
||||
const downloadBtn = isActive
|
||||
? `<a href="/api/fleet/download/${encodeURIComponent(agent.machine_id)}" class="btn btn-primary btn-small" style="text-decoration:none;font-size:11px;" title="Télécharger l'installeur pré-configuré">📥</a>`
|
||||
? `<a href="/api/fleet/download/${encodeURIComponent(agent.machine_id)}" class="btn btn-primary btn-small" style="text-decoration:none;font-size:11px;" title="Télécharger Léa (installation autonome, sans Python — dézipper puis double-cliquer Lea.bat)">📥</a>`
|
||||
: `<span style="font-size:16px;color:#475569;cursor:not-allowed;opacity:0.4;" title="Agent révoqué — installeur indisponible">📥</span>`;
|
||||
|
||||
return `<tr style="border-bottom:1px solid #334155;">
|
||||
|
||||
Reference in New Issue
Block a user