Merge pull request #41 from Quantum-P3/feature/US-08

arreglo seleccion icono perfil y validacion password
This commit is contained in:
Eduardo Quiros 2021-07-18 05:55:56 +00:00 committed by GitHub
commit 8e9a148b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -175,7 +175,7 @@
<p class="ds-title">Perfil</p> <p class="ds-title">Perfil</p>
</div> </div>
<div> <div>
<p class="ds-subtitle">Información general de su usuario, el correo electrónico es su identificador en DataSurvey.</p> <p class="ds-subtitle">Información general de su usuario, el correo electrónico es su identificador en DataSurvey</p>
</div> </div>
</div> </div>
</div> </div>
@ -284,7 +284,7 @@
</div> </div>
<div> <div>
<p class="ds-subtitle"> <p class="ds-subtitle">
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
</p> </p>
</div> </div>

View File

@ -50,8 +50,8 @@ export class SettingsComponent implements OnInit {
//form de la contraseña //form de la contraseña
passwordForm = this.fb.group({ passwordForm = this.fb.group({
password: [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)], passwordNew: [null, [Validators.required, Validators.minLength(8), Validators.maxLength(50)]],
passwordNewConfirm: [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 }) => { // this.activatedRoute.data.subscribe(({ usuarioExtra }) => {
@ -230,8 +230,10 @@ export class SettingsComponent implements OnInit {
// Update swiper // Update swiper
this.profileIcon = usuarioExtra.iconoPerfil!; this.profileIcon = usuarioExtra.iconoPerfil!;
console.log(this.profileIcon);
this.profileIcons.forEach(icon => { this.profileIcons.forEach(icon => {
if (parseInt(icon.name.split('C')[1]) === this.profileIcon) { if (icon.name.split('C')[1] === this.profileIcon) {
icon.class = 'active'; icon.class = 'active';
} }
}); });
@ -282,7 +284,7 @@ export class SettingsComponent implements OnInit {
event.target.classList.add('active'); event.target.classList.add('active');
this.profileIcon = +event.target.getAttribute('id')! + 1; this.profileIcon = +event.target.getAttribute('id')! + 1;
console.log(this.profileIcon); //console.log(this.profileIcon);
} }
} }
} }