(reportId)
| 2742 | const percent = Math.round((done / total) * 100); |
| 2743 | bar.hidden = false; |
| 2744 | bar.style.setProperty("--triage-progress", `${percent}%`); |
| 2745 | bar.dataset.complete = done >= total ? "true" : "false"; |
| 2746 | const label = done >= total |
| 2747 | ? ui().papers.triageAllDone(total) |
| 2748 | : ui().papers.triageProgress(done, total); |
| 2749 | const text = $("triageProgressText"); |
| 2750 | if (text) text.textContent = label; |
| 2751 | bar.setAttribute("aria-valuenow", String(done)); |
| 2752 | bar.setAttribute("aria-valuemax", String(total)); |
| 2753 | bar.setAttribute("aria-valuetext", label); |
| 2754 | } |
| 2755 |
no test coverage detected