diff --git a/Source/SelfService/Web/m3connector/details.tsx b/Source/SelfService/Web/m3connector/details.tsx index 45f2c31bf..88c9b8b3b 100644 --- a/Source/SelfService/Web/m3connector/details.tsx +++ b/Source/SelfService/Web/m3connector/details.tsx @@ -33,8 +33,18 @@ export const View: React.FunctionComponent = (props) => { return null; } + const downloadCode = (e) => { + e.preventDefault(); + const form = document.getElementById('download-form') as HTMLFormElement; + form?.setAttribute('action', `/selfservice/api/application/${applicationId}/${environment}/codegenerator/m3connector-consumer`); + form?.submit(); + }; + return ( <> +
+ Download sample code +
Config