added unsupported
This commit is contained in:
1 parent
cdf67aa1a9
commit
7d7a788723
2 files changed
+18
-6
No files matched your search
@@ -7,18 +7,16 @@ import { OptionManager, updateActionData } from './OptionManager';
|
||||
export const ActionCallServiceState: OptionManager<ServiceAction> = {
|
||||
defaultState: () => ({
|
||||
service: "",
|
||||
target: "",
|
||||
target: {},
|
||||
data: {},
|
||||
}),
|
||||
isReady: ({
|
||||
service, alias, target
|
||||
service,
|
||||
}) => (
|
||||
service !== '' &&
|
||||
alias !== '' &&
|
||||
target !== ''
|
||||
service !== ''
|
||||
),
|
||||
renderOptionList: (state, setState) => {
|
||||
const { service, target } = state;
|
||||
const { service, target, data } = state;
|
||||
const update = updateActionData(state, setState);
|
||||
return <>
|
||||
<InputText
|
||||
@@ -32,6 +30,11 @@ export const ActionCallServiceState: OptionManager<ServiceAction> = {
|
||||
value={target}
|
||||
onChange={target => update({ target })}
|
||||
/>
|
||||
<InputYaml
|
||||
label="Data"
|
||||
value={data}
|
||||
onChange={data => update({ data })}
|
||||
/>
|
||||
</>
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user