From 7d7a78872358128e213a734979f852cef0703ad5 Mon Sep 17 00:00:00 2001 From: Ari Date: Fri, 27 May 2022 12:08:58 -0400 Subject: [PATCH] added unsupported --- .../NodeEditor/OptionManager/ActionService.tsx | 15 +++++++++------ .../src/components/NodeEditor/index.stories.tsx | 9 +++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/webapp/src/components/NodeEditor/OptionManager/ActionService.tsx b/webapp/src/components/NodeEditor/OptionManager/ActionService.tsx index 99840f6..e13a122 100644 --- a/webapp/src/components/NodeEditor/OptionManager/ActionService.tsx +++ b/webapp/src/components/NodeEditor/OptionManager/ActionService.tsx @@ -7,18 +7,16 @@ import { OptionManager, updateActionData } from './OptionManager'; export const ActionCallServiceState: OptionManager = { 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 <> = { value={target} onChange={target => update({ target })} /> + update({ data })} + /> } } diff --git a/webapp/src/components/NodeEditor/index.stories.tsx b/webapp/src/components/NodeEditor/index.stories.tsx index 90f012c..769bd08 100644 --- a/webapp/src/components/NodeEditor/index.stories.tsx +++ b/webapp/src/components/NodeEditor/index.stories.tsx @@ -56,6 +56,15 @@ Condition.args = { } as AutomationCondition, } +export const UnSupported = Action.bind({}) +UnSupported.args = { + ...UnSupported.args, + node: { + "condition": "bargs", + "platform": "rouge" + } as any, +} + export const InAModal: ComponentStory = props => {