v1.0.23: детальные ошибки загрузки + actions после upload

This commit is contained in:
2026-06-18 19:38:34 +04:00
parent de090dba58
commit 10c4817198
+9 -3
View File
@@ -64,7 +64,7 @@
<body>
<div class="topbar">
<img src="/nubes-logo.svg" alt="Nubes">
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.22 — Lucee</span></span>
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.23 — Lucee</span></span>
</div>
<div class="content">
@@ -232,6 +232,10 @@ uploadBtn.addEventListener('click', function() {
if (i >= fileQueue.length) {
uploadTimer.style.display = 'none';
uploadBtn.disabled = false;
if (contractId) {
document.getElementById('actionsCard').style.display = 'block';
document.getElementById('chatCard').style.display = 'block';
}
return;
}
var f = fileQueue[i];
@@ -273,13 +277,15 @@ uploadBtn.addEventListener('click', function() {
};
xhr.onerror = function() {
f.status = 'error';
log('❌ ' + f.name + ': сеть');
var detail = 'сеть (status=' + xhr.status + ')';
if (xhr.responseText) detail += ' resp=' + xhr.responseText.substring(0,200);
log('❌ ' + f.name + ': ' + detail);
renderTable();
uploadNext(i + 1);
};
xhr.ontimeout = function() {
f.status = 'error';
log('❌ ' + f.name + ': таймаут');
log('❌ ' + f.name + ': таймаут 120с');
renderTable();
uploadNext(i + 1);
};