diff --git a/src/app/models/user.model.ts b/src/app/models/user.model.ts index d4c4b9a58ec6a5d41bea93d69302150fc6aba921..ed5b7aa02ddf13100b7b3b8974b29b0e62c4cc81 100644 --- a/src/app/models/user.model.ts +++ b/src/app/models/user.model.ts @@ -10,6 +10,7 @@ export class User { validationToken: string; structuresLink: string[]; pendingStructuresLink: string[] = []; + profileImage: string; constructor(obj?: any) { Object.assign(this, obj); diff --git a/src/app/profile/profile.component.html b/src/app/profile/profile.component.html index 54ad68b58040706bd665df479611871b7681d669..45f184ad15b5c6cf668edb549139c729b9c88c45 100644 --- a/src/app/profile/profile.component.html +++ b/src/app/profile/profile.component.html @@ -1,6 +1,9 @@ <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> diff --git a/src/app/profile/profile.component.ts b/src/app/profile/profile.component.ts index 0b3b1d36c276ff97445d274268e12faa1ce09d7a..4c1c5e75819218ab9410442610c7acda87839bf9 100644 --- a/src/app/profile/profile.component.ts +++ b/src/app/profile/profile.component.ts @@ -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) => {