fix: show cancelled jobs as cancelled after reload
CI / test (push) Successful in 4m51s

This commit is contained in:
strsv committed 2026-11-06 22:55:58 +03:00
1 parent e51fff653a
commit d92c7a1964
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1615,7 +1615,8 @@ async function pollJob(silent = false) {
jobTimer = setTimeout(pollJob, 1500);
} else if (st.finished_at) {
if (silent) {
el.textContent = st.exit_code === 0 ? "готово" : `ошибка (код ${st.exit_code})`;
el.textContent = st.cancelled ? "отменено"
: st.exit_code === 0 ? "готово" : `ошибка (код ${st.exit_code})`;
return;
}
if (st.cancelled) {