Flow delete offers to delete its runs, history included
DELETE /runs?flow= removes every Run row of the flow but left its flow_run rows, so a deleted flow kept appearing in the history. history=true now drops those too, and the flow delete dialogs (editor and bulk) send it when "Also delete its runs" is ticked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
@@ -277,6 +277,7 @@ export function ConfirmDelete({
|
||||
pending,
|
||||
description,
|
||||
onConfirm,
|
||||
children,
|
||||
}: {
|
||||
open: boolean
|
||||
onOpenChange: (open: boolean) => void
|
||||
@@ -286,6 +287,8 @@ export function ConfirmDelete({
|
||||
/** What is actually lost, when the git-backed answer below is not it. */
|
||||
description?: string
|
||||
onConfirm: () => void
|
||||
/** An option the delete takes, drawn between the question and the buttons. */
|
||||
children?: ReactNode
|
||||
}) {
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
||||
@@ -307,6 +310,7 @@ export function ConfirmDelete({
|
||||
)}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
{children}
|
||||
<DialogFooter>
|
||||
<Button variant="outline" onClick={() => onOpenChange(false)}>
|
||||
Keep {names.length === 1 ? "it" : "them"}
|
||||
|
||||
Reference in New Issue
Block a user