fix(dashboard): SYST3M tab count was always 0 (PascalCase vs snake_case)
refreshTabCounts() compared entry.state against 'Queued' / 'Running' (PascalCase) but QueueState serialises as snake_case per #[serde(rename_all = "snake_case")] — wire values are 'queued' / 'running'. Tab badge was always 0 regardless of rebuild-queue depth.
This commit is contained in:
parent
04b313b5e7
commit
13b0844c41
1 changed files with 1 additions and 1 deletions
|
|
@ -3894,7 +3894,7 @@ window.marked = marked;
|
|||
let sysCount = 0;
|
||||
if (rebuildQueueState) {
|
||||
for (const e of rebuildQueueState) {
|
||||
if (e.state === 'Queued' || e.state === 'Running') sysCount++;
|
||||
if (e.state === 'queued' || e.state === 'running') sysCount++;
|
||||
}
|
||||
}
|
||||
setTabCount('system', sysCount);
|
||||
|
|
|
|||
Loading…
Reference in a new issue