From f9e3797cdd92a71811bd563bf28c8a5e8d332e70 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Mon, 10 Mar 2025 15:13:41 +0800 Subject: [PATCH] feat: default set `autoRestart` on deployment to 1panel or baotapanel --- .../workflow/node/DeployNodeConfigForm1PanelConsoleConfig.tsx | 4 +++- .../node/DeployNodeConfigFormBaotaPanelConsoleConfig.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/components/workflow/node/DeployNodeConfigForm1PanelConsoleConfig.tsx b/ui/src/components/workflow/node/DeployNodeConfigForm1PanelConsoleConfig.tsx index 349b516e..b17150d8 100644 --- a/ui/src/components/workflow/node/DeployNodeConfigForm1PanelConsoleConfig.tsx +++ b/ui/src/components/workflow/node/DeployNodeConfigForm1PanelConsoleConfig.tsx @@ -16,7 +16,9 @@ export type DeployNodeConfigForm1PanelConsoleConfigProps = { }; const initFormModel = (): DeployNodeConfigForm1PanelConsoleConfigFieldValues => { - return {}; + return { + autoRestart: true, + }; }; const DeployNodeConfigForm1PanelConsoleConfig = ({ diff --git a/ui/src/components/workflow/node/DeployNodeConfigFormBaotaPanelConsoleConfig.tsx b/ui/src/components/workflow/node/DeployNodeConfigFormBaotaPanelConsoleConfig.tsx index 40d93b7f..ca440a27 100644 --- a/ui/src/components/workflow/node/DeployNodeConfigFormBaotaPanelConsoleConfig.tsx +++ b/ui/src/components/workflow/node/DeployNodeConfigFormBaotaPanelConsoleConfig.tsx @@ -16,7 +16,9 @@ export type DeployNodeConfigFormBaotaPanelConsoleConfigProps = { }; const initFormModel = (): DeployNodeConfigFormBaotaPanelConsoleConfigFieldValues => { - return {}; + return { + autoRestart: true, + }; }; const DeployNodeConfigFormBaotaPanelConsoleConfig = ({