Imprimante : bandeau erreur tous écrans + reset USB + statut détaillé

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 21:17:27 +02:00
parent 2b204ddb5e
commit 843762b6d7
5 changed files with 103 additions and 2 deletions

View File

@@ -92,6 +92,12 @@ function _getOrientations() {
return { ...existing, [fmt]: orient };
}
async function resetUsb() {
afficherStatut('Réinitialisation USB...', 'succes');
const r = await apiPost('/api/imprimante/reset-usb', {});
afficherStatut(r.message, r.succes ? 'succes' : 'erreur');
}
async function evacuerBourrage() {
const r = await apiPost('/api/imprimante/evacuer', {});
afficherStatut(r.message || 'Imprimante réactivée', r.succes ? 'succes' : 'erreur');