From 852f8946052411ca3d9e338721227a5b86e833f8 Mon Sep 17 00:00:00 2001 From: apuente Date: Mon, 28 Oct 2024 12:28:57 +0100 Subject: [PATCH] Login - show password bug fix --- .../app/components/login/login.component.html | 46 +++++++++---------- .../app/components/login/login.component.ts | 4 +- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/ogWebconsole/src/app/components/login/login.component.html b/ogWebconsole/src/app/components/login/login.component.html index 3229fbc..c5b2dc7 100644 --- a/ogWebconsole/src/app/components/login/login.component.html +++ b/ogWebconsole/src/app/components/login/login.component.html @@ -1,32 +1,30 @@
- + - + \ No newline at end of file diff --git a/ogWebconsole/src/app/components/login/login.component.ts b/ogWebconsole/src/app/components/login/login.component.ts index 29bbcbd..aeb2dac 100644 --- a/ogWebconsole/src/app/components/login/login.component.ts +++ b/ogWebconsole/src/app/components/login/login.component.ts @@ -45,7 +45,6 @@ export class LoginComponent { return; } - // Usar la URL base de la variable de entorno this.http.post(`${this.baseUrl}/auth/login`, this.loginObj).subscribe({ next: (res: any) => { if (res.token) { @@ -65,7 +64,8 @@ export class LoginComponent { } hide = signal(true); - clickEvent() { + clickEvent(event: Event) { + event.stopPropagation(); this.hide.set(!this.hide()); }