condition + repeat node

This commit is contained in:
ari committed 2022-07-14 15:24:35 -04:00
1 parent 89c7007612
commit 07ab4b9089
22 files changed
+631 -282

No files matched your search

@@ -23,6 +23,13 @@ export const ActionRepeatState: OptionManager<RepeatAction> = {
update({ repeat: { ...state.repeat, count } })
}
/>
<InputYaml
label="While"
value={state.repeat.while ?? []}
onChange={(sequence) =>
update({ repeat: { ...state.repeat, while: sequence } })
}
/>
<InputYaml
label="Sequence"
value={state.repeat.sequence ?? []}
@@ -31,11 +38,9 @@ export const ActionRepeatState: OptionManager<RepeatAction> = {
}
/>
<InputYaml
label="Condition"
value={state.repeat.while ?? []}
onChange={(sequence) =>
update({ repeat: { ...state.repeat, sequence } })
}
label="Until"
value={state.repeat.until ?? []}
onChange={(until) => update({ repeat: { ...state.repeat, until } })}
/>
</>
);