aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_pages
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/_pages')
-rw-r--r--frontend/src/app/_pages/profile/profile.component.html2
-rw-r--r--frontend/src/app/_pages/profile/profile.component.ts4
2 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/app/_pages/profile/profile.component.html b/frontend/src/app/_pages/profile/profile.component.html
index 24efaeb5..d082a003 100644
--- a/frontend/src/app/_pages/profile/profile.component.html
+++ b/frontend/src/app/_pages/profile/profile.component.html
@@ -104,7 +104,7 @@
<div class="row overflow-auto" style="max-height: 200px;">
<div class="card col-md-3" *ngFor="let picture of this.pictures" (click)="this.photoId = picture.photoId.toString()"
[ngClass]="{'selectedPicture': this.photoId == picture.photoId.toString()}">
- <img class="card-img-top" src="{{picture.path}}">
+ <img src="{{picture.path}}">
</div>
</div>
</div>
diff --git a/frontend/src/app/_pages/profile/profile.component.ts b/frontend/src/app/_pages/profile/profile.component.ts
index cb4b095e..3e9a0d11 100644
--- a/frontend/src/app/_pages/profile/profile.component.ts
+++ b/frontend/src/app/_pages/profile/profile.component.ts
@@ -5,6 +5,8 @@ import { AuthService } from 'src/app/_services/auth.service';
import { Router } from '@angular/router';
import { PICTURES } from 'src/app/_data/ProfilePictures';
import { Picture } from 'src/app/_data/ProfilePictures';
+import shared from '../../Shared';
+
@Component({
selector: 'app-profile',
@@ -50,6 +52,7 @@ export class ProfileComponent implements OnInit {
this.userInfoService.getUserInfo().subscribe((response) => {
this.user = response;
+ shared.photoId = this.user.photoId;
this.username = this.user.username;
this.email = this.user.email;
@@ -155,6 +158,7 @@ export class ProfileComponent implements OnInit {
break;
}
}
+ shared.photoId = this.photoId;
}