мс вместо сек, идемпотентность (кнопка блокируется после успеха), v1.9
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<body>
|
||||
<div class="topbar">
|
||||
<img src="{{ url_for('static', filename='nubes-logo.svg') }}" alt="Nubes">
|
||||
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.8</span></span>
|
||||
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.9</span></span>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
@@ -265,7 +265,7 @@
|
||||
var now = Date.now();
|
||||
document.querySelectorAll('.proc-timer').forEach(function(el) {
|
||||
var start = parseInt(el.dataset.start);
|
||||
if (start) el.textContent = '⏳ ' + Math.round((now - start) / 1000) + 'с';
|
||||
if (start) el.textContent = '⏳ ' + ((now - start) / 1000).toFixed(1) + 'с';
|
||||
});
|
||||
}, 500);
|
||||
|
||||
@@ -310,7 +310,11 @@
|
||||
else if (d.type === 'summary') {
|
||||
clearInterval(timerInterval);
|
||||
es.close();
|
||||
resetBtn();
|
||||
|
||||
// Идемпотентность: больше нельзя запустить
|
||||
parseBtn.disabled = true;
|
||||
parseBtn.innerHTML = '<i data-lucide="check" style="width:16px;height:16px;"></i> ✓ Готово';
|
||||
lucide.createIcons();
|
||||
|
||||
var summaryRow = document.createElement('tr');
|
||||
summaryRow.className = 'summary-row';
|
||||
|
||||
Reference in New Issue
Block a user