From d25dc55d7b2c29ca76b8fcd02e1e375aeb885ef3 Mon Sep 17 00:00:00 2001 From: Paola Date: Sat, 17 Jul 2021 23:47:01 -0600 Subject: [PATCH] arreglo seleccion icono perfil y validacion password --- .../app/account/settings/settings.component.html | 4 ++-- .../app/account/settings/settings.component.ts | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/app/account/settings/settings.component.html b/src/main/webapp/app/account/settings/settings.component.html index e259328..37694de 100644 --- a/src/main/webapp/app/account/settings/settings.component.html +++ b/src/main/webapp/app/account/settings/settings.component.html @@ -175,7 +175,7 @@

Perfil

-

Información general de su usuario, el correo electrónico es su identificador en DataSurvey.

+

Información general de su usuario, el correo electrónico es su identificador en DataSurvey

@@ -284,7 +284,7 @@

- Utilice una contraseña segura al realizar el cambio, este dato debe ser secreto ya que provee acceso a su cuenta. + Utilice una contraseña segura al realizar el cambio, este dato debe ser secreto ya que provee acceso a su cuenta

diff --git a/src/main/webapp/app/account/settings/settings.component.ts b/src/main/webapp/app/account/settings/settings.component.ts index 3ad2169..55335fd 100644 --- a/src/main/webapp/app/account/settings/settings.component.ts +++ b/src/main/webapp/app/account/settings/settings.component.ts @@ -50,8 +50,8 @@ export class SettingsComponent implements OnInit { //form de la contraseña passwordForm = this.fb.group({ - password: [null, [Validators.required], Validators.minLength(8), Validators.maxLength(50)], - passwordNew: [null, [Validators.required], Validators.minLength(8), Validators.maxLength(50)], + password: [null, [Validators.required, Validators.minLength(8), Validators.maxLength(50)]], + passwordNew: [null, [Validators.required, Validators.minLength(8), Validators.maxLength(50)]], passwordNewConfirm: [null, [Validators.required, Validators.minLength(8), Validators.maxLength(50)]], }); @@ -121,7 +121,7 @@ export class SettingsComponent implements OnInit { } }); - console.log(this.isGoogle); + //console.log(this.isGoogle); // this.activatedRoute.data.subscribe(({ usuarioExtra }) => { @@ -230,8 +230,10 @@ export class SettingsComponent implements OnInit { // Update swiper this.profileIcon = usuarioExtra.iconoPerfil!; + + console.log(this.profileIcon); this.profileIcons.forEach(icon => { - if (parseInt(icon.name.split('C')[1]) === this.profileIcon) { + if (icon.name.split('C')[1] === this.profileIcon) { icon.class = 'active'; } }); @@ -282,7 +284,7 @@ export class SettingsComponent implements OnInit { event.target.classList.add('active'); this.profileIcon = +event.target.getAttribute('id')! + 1; - console.log(this.profileIcon); + //console.log(this.profileIcon); } } }