Skip to content
Snippets Groups Projects
Commit 7ac35111 authored by Antonin COQUET's avatar Antonin COQUET
Browse files

fix: use profileImage attribute for profile picture

parent 24a2f9f7
No related branches found
No related tags found
3 merge requests!103Recette,!102Dev,!97fix: remove profil picture from profil page
......@@ -10,6 +10,7 @@ export class User {
validationToken: string;
structuresLink: string[];
pendingStructuresLink: string[] = [];
profileImage: string;
constructor(obj?: any) {
Object.assign(this, obj);
......
<div fxLayout="column" class="content-container full-screen" *ngIf="userProfile">
<div class="profileSection">
<div class="section-container" fxLayout="row">
<ng-container *ngIf="userProfile.profileImage">
<img class="cameraProfile" src="userProfile.profileImage">
</ng-container>
<div class="profileInformation" fxLayoutGap="18px" fxLayout="column">
<div fxLayout="row" fxLayoutAlign="space-between center">
<p class="profileName">{{ userProfile.name | titlecase }} {{ userProfile.surname | titlecase }}</p>
......
......@@ -25,6 +25,7 @@ export class ProfileComponent implements OnInit {
ngOnInit(): void {
this.profileService.getProfile().then((profile) => {
this.userProfile = profile;
console.log(this.userProfile.profileImage)
this.structures = [];
profile.structuresLink.forEach((structureId) => {
this.structureService.getStructureWithOwners(structureId, profile).subscribe((s) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment