aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_pages/profile/profile.component.ts
diff options
context:
space:
mode:
authorSonja Galovic <galovicsonja@gmail.com>2022-03-24 00:42:57 +0100
committerSonja Galovic <galovicsonja@gmail.com>2022-03-24 00:42:57 +0100
commit6a4abae42f6a785f4e666b8fee23211e9e0ba543 (patch)
tree38df2d6dc04af39b077059ecbacffb1bedb2bbb7 /frontend/src/app/_pages/profile/profile.component.ts
parent7c9c0653c68ecd5ad7e9c5b48922874fd6901fb1 (diff)
Uskladjena promena profilne slike sa slikom u navbaru.
Diffstat (limited to 'frontend/src/app/_pages/profile/profile.component.ts')
-rw-r--r--frontend/src/app/_pages/profile/profile.component.ts4
1 files changed, 4 insertions, 0 deletions
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;
}