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:
@@ -2308,6 +2308,9 @@ async function buildSidebar(el) {
|
||||
// db_deleteAllForWorkflow already toasts on error
|
||||
}
|
||||
await refresh(true);
|
||||
if (timelineRefresh) {
|
||||
timelineRefresh().catch(() => {});
|
||||
}
|
||||
});
|
||||
footer.appendChild(clearBtn);
|
||||
|
||||
@@ -2564,6 +2567,9 @@ async function buildSidebar(el) {
|
||||
await db_delete(rec.workflowKey, rec.id);
|
||||
pickerDirty = true;
|
||||
await refresh();
|
||||
if (timelineRefresh) {
|
||||
timelineRefresh().catch(() => {});
|
||||
}
|
||||
});
|
||||
|
||||
const diffBtn = document.createElement("button");
|
||||
|
||||
Reference in New Issue
Block a user