correction de tous les bugs niveaux 1 (faibles)

This commit is contained in:
MiharyR 2021-12-16 13:45:05 +01:00
parent b5bb8e7cc4
commit f2ced83246
26 changed files with 53 additions and 38 deletions

View file

@ -48,7 +48,7 @@ export class PageProfilAdminComponent 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 PageProfilAdminComponent implements OnInit
}
else {
this.admin = retour.data;
this.profilService.id = retour.data.id;
}
}

View file

@ -67,7 +67,7 @@ export class PopupUpdateAdminComponent implements OnInit
profileImageUrl: this.adminCopy.profileImageUrl,
};
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) );
}
}
@ -80,6 +80,7 @@ export class PopupUpdateAdminComponent implements OnInit
this.dialogRef.close(null);
}
else {
this.profilService.setProfileImageUrl(this.adminCopy.profileImageUrl);
this.dialogRef.close(this.adminCopy);
}
}

View file

@ -23,7 +23,7 @@
<!-- Mon profil -->
<img [src]=profilService.profileImageUrl
<img [src]=profilService.getProfileImageUrl()
onerror="this.onerror=null; this.src='assets/profil.png'"
[routerLink]="routes[3]"
alt="">