Refresh timeline after clearing or deleting snapshots

The sidebar refresh didn't trigger a timeline update, leaving stale
markers visible until the next auto-capture or manual action.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 22:31:03 +01:00
parent 0b7fb5be0e
commit ab3bbc7f71

View File

@@ -2308,6 +2308,9 @@ async function buildSidebar(el) {
// db_deleteAllForWorkflow already toasts on error // db_deleteAllForWorkflow already toasts on error
} }
await refresh(true); await refresh(true);
if (timelineRefresh) {
timelineRefresh().catch(() => {});
}
}); });
footer.appendChild(clearBtn); footer.appendChild(clearBtn);
@@ -2564,6 +2567,9 @@ async function buildSidebar(el) {
await db_delete(rec.workflowKey, rec.id); await db_delete(rec.workflowKey, rec.id);
pickerDirty = true; pickerDirty = true;
await refresh(); await refresh();
if (timelineRefresh) {
timelineRefresh().catch(() => {});
}
}); });
const diffBtn = document.createElement("button"); const diffBtn = document.createElement("button");