v1.0.23: детальные ошибки загрузки + actions после upload
This commit is contained in:
@@ -64,7 +64,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<img src="/nubes-logo.svg" alt="Nubes">
|
<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>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -232,6 +232,10 @@ uploadBtn.addEventListener('click', function() {
|
|||||||
if (i >= fileQueue.length) {
|
if (i >= fileQueue.length) {
|
||||||
uploadTimer.style.display = 'none';
|
uploadTimer.style.display = 'none';
|
||||||
uploadBtn.disabled = false;
|
uploadBtn.disabled = false;
|
||||||
|
if (contractId) {
|
||||||
|
document.getElementById('actionsCard').style.display = 'block';
|
||||||
|
document.getElementById('chatCard').style.display = 'block';
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var f = fileQueue[i];
|
var f = fileQueue[i];
|
||||||
@@ -273,13 +277,15 @@ uploadBtn.addEventListener('click', function() {
|
|||||||
};
|
};
|
||||||
xhr.onerror = function() {
|
xhr.onerror = function() {
|
||||||
f.status = 'error';
|
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();
|
renderTable();
|
||||||
uploadNext(i + 1);
|
uploadNext(i + 1);
|
||||||
};
|
};
|
||||||
xhr.ontimeout = function() {
|
xhr.ontimeout = function() {
|
||||||
f.status = 'error';
|
f.status = 'error';
|
||||||
log('❌ ' + f.name + ': таймаут');
|
log('❌ ' + f.name + ': таймаут 120с');
|
||||||
renderTable();
|
renderTable();
|
||||||
uploadNext(i + 1);
|
uploadNext(i + 1);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user