From 2d78319683c6df7c6a1bcbe9173d6454697d128e Mon Sep 17 00:00:00 2001 From: Ari Date: Tue, 12 Jul 2022 21:15:34 -0400 Subject: [PATCH] choose no longer asks for missing values --- .../NodeEditor/OptionManager/ActionChoose.tsx | 14 +++++--------- webapp/src/components/NodeEditor/index.tsx | 2 ++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/webapp/src/components/NodeEditor/OptionManager/ActionChoose.tsx b/webapp/src/components/NodeEditor/OptionManager/ActionChoose.tsx index e55d511..72c3b35 100644 --- a/webapp/src/components/NodeEditor/OptionManager/ActionChoose.tsx +++ b/webapp/src/components/NodeEditor/OptionManager/ActionChoose.tsx @@ -1,6 +1,5 @@ import { ChooseAction } from "types/automations/actions"; -import { OptionManager } from './OptionManager'; - +import { OptionManager } from "./OptionManager"; export const ActionChooseState: OptionManager = { defaultState: () => ({ @@ -8,11 +7,8 @@ export const ActionChooseState: OptionManager = { default: [], choose: [], }), - isReady: ({ alias }) => { - return alias !== '' + isReady: () => true, + Component: () => { + return <>; }, - renderOptionList: () => { - return <> - - } -} +}; diff --git a/webapp/src/components/NodeEditor/index.tsx b/webapp/src/components/NodeEditor/index.tsx index 4095e46..89c6206 100644 --- a/webapp/src/components/NodeEditor/index.tsx +++ b/webapp/src/components/NodeEditor/index.tsx @@ -51,6 +51,8 @@ export const NodeEditor: FC = ({ if (notes.length > 0) { try { await confirm({ + confirmationText: "Yes", + title: `Are you sure you want to ${what}?`, description: (
    {notes.map((n, i) => (