From b3a36728574bdcb19b425f83358cb8ba34d51879 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 6 Aug 2024 15:42:22 +0800 Subject: [PATCH] chore: new required field --- .../app/configuration/config-var/config-modal/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/app/components/app/configuration/config-var/config-modal/index.tsx b/web/app/components/app/configuration/config-var/config-modal/index.tsx index 045860f9b8..7375631153 100644 --- a/web/app/components/app/configuration/config-var/config-modal/index.tsx +++ b/web/app/components/app/configuration/config-var/config-modal/index.tsx @@ -13,9 +13,9 @@ import { checkKeys, getNewVarInWorkflow } from '@/utils/var' import ConfigContext from '@/context/debug-configuration' import type { InputVar, MoreInfo, UploadFileSetting } from '@/app/components/workflow/types' import Modal from '@/app/components/base/modal' -import Switch from '@/app/components/base/switch' import { ChangeType, InputVarType } from '@/app/components/workflow/types' import FileUploadSetting from '@/app/components/workflow/nodes/_base/components/file-upload-setting' +import Checkbox from '@/app/components/base/checkbox' const TEXT_MAX_LENGTH = 256 @@ -186,9 +186,10 @@ const ConfigModal: FC = ({ /> )} - - - +
+ handlePayloadChange('required')(!tempPayload.required)} /> + {t('appDebug.variableConig.required')} +