Merge pull request 'fix: show stack badge in history timeline, matching state treatment' (#28) from fix/history-stack-badge into dev
All checks were successful
CI / test (push) Successful in 13s
CI / build-dev (push) Successful in 22s

Reviewed-on: #28
This commit was merged in pull request #28.
This commit is contained in:
2026-03-28 15:14:02 -04:00

View File

@@ -197,7 +197,7 @@ async function renderDetailPage(vmid) {
<span class="tl-time">${fmtDateFull(e.changed_at)}</span> <span class="tl-time">${fmtDateFull(e.changed_at)}</span>
</div>`; </div>`;
const label = FIELD_LABELS[e.field] ?? esc(e.field); const label = FIELD_LABELS[e.field] ?? esc(e.field);
const newCls = e.field === 'state' const newCls = (e.field === 'state' || e.field === 'stack')
? `badge ${esc(e.new_value)}` ? `badge ${esc(e.new_value)}`
: `tl-new ${stateClass(e.field, e.new_value)}`; : `tl-new ${stateClass(e.field, e.new_value)}`;
return ` return `