diff --git a/apps/agent/src/login-form/LoginForm.tsx b/apps/agent/src/login-form/LoginForm.tsx index b2ecb03..99780d0 100644 --- a/apps/agent/src/login-form/LoginForm.tsx +++ b/apps/agent/src/login-form/LoginForm.tsx @@ -189,6 +189,14 @@ export const LoginForm: React.FC = (props) => { > Login + {vm.formState === FormStates.CredentialsAccepted && ( + )} diff --git a/apps/agent/src/login-form/hooks/UseViewModel.ts b/apps/agent/src/login-form/hooks/UseViewModel.ts index 4b26a84..6f17cfd 100644 --- a/apps/agent/src/login-form/hooks/UseViewModel.ts +++ b/apps/agent/src/login-form/hooks/UseViewModel.ts @@ -33,6 +33,7 @@ export interface LoginFormViewModelInterface { alertActionLinkText?: string; shouldDisplayAlert: boolean; handleSubmit: React.FormEventHandler; + handleReturnToAssistedMigration: () => void; } const _computeFormControlVariant = ( @@ -218,5 +219,8 @@ export const useViewModel = (): LoginFormViewModelInterface => { }, [agentApi, navigateTo] ), + handleReturnToAssistedMigration: useCallback(() => { + window.open('http://localhost:3000/migrate', '_blank', 'noopener,noreferrer'); // Abre en una nueva pestaƱa + }, []), }; };