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 PageProfilAdvertiserComponent 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 PageProfilAdvertiserComponent implements OnInit
}
else {
this.advertiser = retour.data;
this.profilService.id = retour.data.id;
}
}

View file

@ -68,7 +68,7 @@ export class PopupUpdateAdvertiserComponent implements OnInit
company: this.advertiserCopy.company
};
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) );
}
}
@ -81,6 +81,7 @@ export class PopupUpdateAdvertiserComponent implements OnInit
this.dialogRef.close(null);
}
else {
this.profilService.setProfileImageUrl(this.advertiserCopy.profileImageUrl);
this.dialogRef.close(this.advertiserCopy);
}
}

View file

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