création des 3 pages de profil

This commit is contained in:
MiharyR 2021-11-12 09:47:14 +01:00
parent ef5dd96747
commit 89e174a28d
25 changed files with 811 additions and 102 deletions

View file

@ -12,7 +12,7 @@ import {User} from "../../../utils/interfaces/user";
export class PopupUpdateUserComponent implements OnInit
{
userCopy: User;
newPassword: string;
newPassword: string = "";
confirmNewPassword: string = "" ;
changePassword: boolean = false ;
hasError: boolean = false;
@ -52,11 +52,14 @@ export class PopupUpdateUserComponent implements OnInit
this.checkField();
if(!this.hasError)
{
const retour = {
const data = {
user: this.userCopy,
newPassword: this.newPassword
};
this.dialogRef.close(retour);
// VRAI CODE: envoie au back ...
this.dialogRef.close(this.userCopy);
}
}