diff --git a/client/src/app/pages/migration-targets/components/custom-target-form.tsx b/client/src/app/pages/migration-targets/components/custom-target-form.tsx index 013300964a..b1ce9cc47e 100644 --- a/client/src/app/pages/migration-targets/components/custom-target-form.tsx +++ b/client/src/app/pages/migration-targets/components/custom-target-form.tsx @@ -61,6 +61,7 @@ export interface CustomTargetFormValues { branch?: string; rootPath?: string; associatedCredentials?: string; + provider?: string; } export const CustomTargetForm: React.FC = ({ @@ -88,6 +89,17 @@ export const CustomTargetForm: React.FC = ({ }, ]; + const providerOptions: OptionWithValue[] = [ + { + value: "Java", + toString: () => `Java`, + }, + { + value: "Go", + toString: () => `Go`, + }, + ]; + const { identities } = useFetchIdentities(); const sourceIdentityOptions = identities @@ -105,6 +117,7 @@ export const CustomTargetForm: React.FC = ({ .object() .shape({ id: yup.number().defined(), + provider: yup.string().defined(), name: yup .string() .trim() @@ -298,6 +311,7 @@ export const CustomTargetForm: React.FC = ({ }, }), }, + provider: formValues.provider || "Java", }; if (target) { @@ -391,6 +405,28 @@ export const CustomTargetForm: React.FC = ({ return (
+ ( + { + const selectionValue = selection as OptionWithValue; + onChange(selectionValue.value); + }} + /> + )} + /> +