correction de tous les bugs niveaux 1 (faibles)
This commit is contained in:
parent
b5bb8e7cc4
commit
f2ced83246
26 changed files with 53 additions and 38 deletions
|
|
@ -48,7 +48,7 @@ export class PageProfilUserComponent implements OnInit
|
|||
ngOnInit(): void
|
||||
{
|
||||
this.messageService
|
||||
.get( "user/findOne/"+this.profilService.id)
|
||||
.get( "user/findOne/"+this.profilService.getId())
|
||||
.subscribe( retour => this.ngOnInitCallback(retour), err => this.ngOnInitCallback(err) )
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +60,6 @@ export class PageProfilUserComponent implements OnInit
|
|||
}
|
||||
else {
|
||||
this.user = retour.data;
|
||||
this.profilService.id = retour.data.id;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ export class PopupUpdateUserComponent implements OnInit
|
|||
interests: this.userCopy.interests,
|
||||
};
|
||||
this.messageService
|
||||
.put("user/update/"+this.profilService.id, data)
|
||||
.put("user/update/"+this.profilService.getId(), data)
|
||||
.subscribe( ret => this.onValiderCallback(ret), err => this.onValiderCallback(err) );
|
||||
}
|
||||
}
|
||||
|
|
@ -83,6 +83,7 @@ export class PopupUpdateUserComponent implements OnInit
|
|||
this.dialogRef.close(null);
|
||||
}
|
||||
else {
|
||||
this.profilService.setProfileImageUrl(this.userCopy.profileImageUrl);
|
||||
this.dialogRef.close(this.userCopy);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue