soumaeda 2 лет назад
Родитель
Сommit
45993f82e5
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      apps/app/src/components/LoginForm.tsx

+ 4 - 3
apps/app/src/components/LoginForm.tsx

@@ -498,7 +498,9 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
 
         <div className="row">
           <div className="text-right col-12 mt-2 py-2">
-            <a href="#login" id="login" className="link-switch" onClick={isLoading ? undefined : switchForm}>
+            <a
+              href="#login" id="login" className="link-switch" style={{ pointerEvents: isLoading ? 'none' : 'auto' }}
+              onClick={isLoading ? undefined : switchForm}>
               <i className="icon-fw icon-login"></i>
               {t('Sign in is here')}
             </a>
@@ -534,8 +536,7 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
                 {/* Sign up link */}
                 {isRegistrationEnabled && (
                   <div className="text-right mb-2">
-                    <a
-                      href="#register" id="register" className="link-switch" onClick={isLoading ? undefined : switchForm}>
+                    <a href="#register" id="register" className="link-switch" style={{ pointerEvents: isLoading ? 'none' : 'auto' }} onClick={switchForm}>
                       <i className="ti ti-check-box"></i> {t('Sign up is here')}
                     </a>
                   </div>