workflow multi languages

This commit is contained in:
yoan
2024-11-11 15:50:36 +08:00
parent 327c83cbc8
commit 1ea0ba18cd
32 changed files with 312 additions and 152 deletions

View File

@@ -64,7 +64,7 @@ const DeployToTencentCOS = ({ data }: DeployFormProps) => {
});
const onSubmit = async (config: z.infer<typeof formSchema>) => {
updateNode({ ...data, config: { ...config } });
updateNode({ ...data, config: { ...config }, validated: true });
hidePanel();
};
@@ -83,7 +83,7 @@ const DeployToTencentCOS = ({ data }: DeployFormProps) => {
name="certificate"
render={({ field }) => (
<FormItem>
<FormLabel></FormLabel>
<FormLabel>{t("workflow.common.certificate.label")}</FormLabel>
<FormControl>
<Select
{...field}
@@ -93,7 +93,7 @@ const DeployToTencentCOS = ({ data }: DeployFormProps) => {
}}
>
<SelectTrigger>
<SelectValue placeholder="选择证书来源" />
<SelectValue placeholder={t("workflow.common.certificate.placeholder")} />
</SelectTrigger>
<SelectContent>
{beforeOutput.map((item) => (