diff options
Diffstat (limited to 'client/src/app/login/login.component.ts')
-rw-r--r-- | client/src/app/login/login.component.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index 7c0220885..4bae3ae5c 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts | |||
@@ -16,6 +16,7 @@ import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' | |||
16 | }) | 16 | }) |
17 | 17 | ||
18 | export class LoginComponent extends FormReactive implements OnInit { | 18 | export class LoginComponent extends FormReactive implements OnInit { |
19 | @ViewChild('emailInput') input: ElementRef | ||
19 | @ViewChild('forgotPasswordModal') forgotPasswordModal: ElementRef | 20 | @ViewChild('forgotPasswordModal') forgotPasswordModal: ElementRef |
20 | @ViewChild('forgotPasswordEmailInput') forgotPasswordEmailInput: ElementRef | 21 | @ViewChild('forgotPasswordEmailInput') forgotPasswordEmailInput: ElementRef |
21 | 22 | ||
@@ -47,6 +48,8 @@ export class LoginComponent extends FormReactive implements OnInit { | |||
47 | username: this.loginValidatorsService.LOGIN_USERNAME, | 48 | username: this.loginValidatorsService.LOGIN_USERNAME, |
48 | password: this.loginValidatorsService.LOGIN_PASSWORD | 49 | password: this.loginValidatorsService.LOGIN_PASSWORD |
49 | }) | 50 | }) |
51 | |||
52 | this.input.nativeElement.focus() | ||
50 | } | 53 | } |
51 | 54 | ||
52 | login () { | 55 | login () { |