diff --git a/frontend/src/views/SecretMainPage/components/ActionBar/CreateSecretImportForm.tsx b/frontend/src/views/SecretMainPage/components/ActionBar/CreateSecretImportForm.tsx index ffd987e3e..69d3b6d40 100644 --- a/frontend/src/views/SecretMainPage/components/ActionBar/CreateSecretImportForm.tsx +++ b/frontend/src/views/SecretMainPage/components/ActionBar/CreateSecretImportForm.tsx @@ -113,6 +113,7 @@ export const CreateSecretImportForm = ({ return ( diff --git a/frontend/src/views/SecretMainPage/components/SecretDropzone/CopySecretsFromBoard.tsx b/frontend/src/views/SecretMainPage/components/SecretDropzone/CopySecretsFromBoard.tsx index c0c4f9a4c..ac6efe5cd 100644 --- a/frontend/src/views/SecretMainPage/components/SecretDropzone/CopySecretsFromBoard.tsx +++ b/frontend/src/views/SecretMainPage/components/SecretDropzone/CopySecretsFromBoard.tsx @@ -31,7 +31,10 @@ const formSchema = z.object({ .transform((val) => typeof val === "string" && val.at(-1) === "/" && val.length > 1 ? val.slice(0, -1) : val ), - secrets: z.object({ key: z.string(), value: z.string().optional() }).array().min(1) + secrets: z + .object({ key: z.string(), value: z.string().optional() }) + .array() + .min(1, "Select one or more secrets to copy") }); type TFormSchema = z.infer; @@ -145,6 +148,7 @@ export const CopySecretsFromBoard = ({
Secrets
-
+