loadProductionRun mostra il detail del server; START ACTIVITY in inglese (#61 #62)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 12:26:33 +02:00
parent 27dc5e77af
commit 2d03577165
3 changed files with 7 additions and 3 deletions
@@ -1249,8 +1249,10 @@ function taskExecute() {
try {
const resp = await fetch('{{ url_for("measure.api_current_production") }}');
if (!resp.ok) {
// #61: l'errore si mostra, non si ignora
this.productionError = '{{ _("Errore di comunicazione con il server") }}';
// #61: si mostra il detail del server (es. 503 "Stazione non configurata"),
// che e' la causa vera; fallback generico se il corpo non e' JSON.
const errBody = await resp.json().catch(() => null);
this.productionError = (errBody && errBody.detail) || '{{ _("Errore di comunicazione con il server") }}';
return;
}
const run = await resp.json();