Show continue_on_failure in loop node (#2251)

This commit is contained in:
Shuchang Zheng
2025-04-30 03:38:46 +08:00
committed by GitHub
parent b1fcfdd8bf
commit 0467cefdae

View File

@@ -139,20 +139,34 @@ function LoopNode({ id, data }: NodeProps<LoopNode>) {
</div>
<div className="space-y-2">
<div className="space-y-2">
<div className="flex gap-4">
<div className="flex gap-2">
<div className="flex justify-between">
<div className="flex items-center gap-2">
<Checkbox
checked={data.completeIfEmpty}
disabled={!data.editable}
onCheckedChange={(checked) => {
handleChange("completeIfEmpty", checked);
}}
/>
<Label className="text-xs text-slate-300">
Complete if Empty
Continue if Empty
</Label>
<HelpTooltip content="When checked, this block will successfully complete when the loop value is an empty list" />
<HelpTooltip content="When checked, the for loop block will successfully complete and workflow execution will continue if the loop value is empty" />
</div>
<div className="flex items-center gap-2">
<Checkbox
checked={data.continueOnFailure}
disabled={!data.editable}
onCheckedChange={(checked) => {
handleChange("continueOnFailure", checked);
}}
/>
<Label className="text-xs text-slate-300">
Continue on Failure
</Label>
<HelpTooltip content="When checked, the loop will continue executing even if one of its iterations fails" />
</div>
<Checkbox
checked={data.completeIfEmpty}
disabled={!data.editable}
onCheckedChange={(checked) => {
handleChange("completeIfEmpty", checked);
}}
/>
</div>
</div>
</div>