simple modal node editor

This commit is contained in:
ari committed 2021-12-15 14:06:13 -05:00
1 parent 90d4fbf8f6
commit fde0f49688
6 files changed
+101 -35

No files matched your search

@@ -29,11 +29,13 @@ export const ActionChooseState: OptionManager<ChooseAction> = {
label="Choose Sequence"
value={state.action_data.choose}
onChange={choose => update({ choose })}
resizable
/>
<InputYaml
label="Default Sequence"
value={state.action_data.default}
onChange={d => update({ default: d })}
resizable
/>
</>
}
@@ -1,4 +1,5 @@
import InputText from "components/Inputs/InputText";
import InputYaml from 'components/Inputs/InputYaml';
import { ServiceAction } from "types/automations/actions";
import { OptionManager, updateActionData } from './OptionManager';
@@ -35,7 +36,7 @@ export const ActionCallServiceState: OptionManager<ServiceAction> = {
value={service}
onChange={service => update({ service })}
/>
<InputText
<InputYaml
label="Target"
value={target}
onChange={target => update({ target })}