diff options
Diffstat (limited to 'frontend/src/app/_modals/login-modal')
-rw-r--r-- | frontend/src/app/_modals/login-modal/login-modal.component.html | 2 | ||||
-rw-r--r-- | frontend/src/app/_modals/login-modal/login-modal.component.ts | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/frontend/src/app/_modals/login-modal/login-modal.component.html b/frontend/src/app/_modals/login-modal/login-modal.component.html index 1c5f318b..cea6bf39 100644 --- a/frontend/src/app/_modals/login-modal/login-modal.component.html +++ b/frontend/src/app/_modals/login-modal/login-modal.component.html @@ -41,7 +41,7 @@ </div> <div class="modal-footer justify-content-center mt-5"> <p class="small mt-1">Nemate nalog? - <a data-bs-toggle="modal" data-bs-target="#modalForRegister"><span id="link">Registrujte se</span></a> + <a data-bs-toggle="modal" data-bs-target="#modalForRegister"><span id="link" (click)="cleanWarnings()">Registrujte se</span></a> </p> </div> </div> diff --git a/frontend/src/app/_modals/login-modal/login-modal.component.ts b/frontend/src/app/_modals/login-modal/login-modal.component.ts index f69e1cff..062a0550 100644 --- a/frontend/src/app/_modals/login-modal/login-modal.component.ts +++ b/frontend/src/app/_modals/login-modal/login-modal.component.ts @@ -44,6 +44,7 @@ export class LoginModalComponent implements OnInit { this.passwordInput.nativeElement.type = "password"; } else { + this.wrongCreds = false; this.authService.authenticate(response); (<HTMLSelectElement>this.closeButton?.nativeElement).click(); this.userInfoService.getUserInfo().subscribe((response) => { @@ -71,4 +72,8 @@ export class LoginModalComponent implements OnInit { else this.passwordInput.nativeElement.type = "password"; } + + cleanWarnings() { + this.wrongCreds = false; + } } |