mirror of
https://github.com/larchanka/manbot.git
synced 2026-05-13 21:42:08 +00:00
fix: db migrations
This commit is contained in:
committed by
Mikhail Larchanka
parent
f98bf66c87
commit
4c581db9c2
@@ -240,11 +240,9 @@ async function updateDashboard() {
|
||||
if (d.pendingTasks && d.pendingTasks.length > 0) {
|
||||
qs.style.display = "block";
|
||||
qt.innerHTML = d.pendingTasks.map(t => {
|
||||
const isRunning = ['planning', 'running', 'finalizing'].includes(t.status);
|
||||
let tc = "warning";
|
||||
if (t.status === 'running') tc = "running";
|
||||
else if (t.status === 'planning') tc = "planning";
|
||||
else if (t.status === 'finalizing') tc = "finalizing";
|
||||
const activeStatuses = ['planning', 'pending', 'running', 'finalizing'];
|
||||
const isRunning = activeStatuses.includes(t.status);
|
||||
const tc = t.status || "warning";
|
||||
const indicator = isRunning ? '<div class="pulse"></div>' : '';
|
||||
return `<tr>
|
||||
<td style="padding-left: 20px; color: var(--text-muted); white-space: nowrap; vertical-align: top; padding-top: 15px; border-bottom: none;">${fmtDate(t.updated_at)}</td>
|
||||
|
||||
@@ -284,8 +284,11 @@
|
||||
}
|
||||
|
||||
.tag.success { background: var(--success-bg); color: var(--success); }
|
||||
.tag.completed { background: var(--success-bg); color: var(--success); }
|
||||
.tag.error { background: var(--error-bg); color: var(--error); }
|
||||
.tag.failed { background: var(--error-bg); color: var(--error); }
|
||||
.tag.warning { background: var(--warning-bg); color: var(--warning); }
|
||||
.tag.pending { background: var(--warning-bg); color: var(--warning); }
|
||||
.tag.running { background: var(--primary-bg); color: var(--primary); }
|
||||
.tag.planning { background: var(--planning-bg); color: var(--text-muted); }
|
||||
.tag.finalizing { background: var(--finalizing-bg); color: var(--purple); }
|
||||
|
||||
Reference in New Issue
Block a user