Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 736c73d

Browse files
Merge pull request #638 from h-da/feature/#558-Picture-in-profile
Feature#558: Picture in profile
2 parents 010ab87 + dcfeb91 commit 736c73d

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

app/webFrontend/src/app/user/user-edit/user-edit.component.html

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<div class="edit-user-wrapper">
22
<h1>Edit profile</h1>
3+
<div class="profile" *ngIf="user">
4+
<span class="user-icon" user-image [user-image]="user" [size]="'100px'"></span>
5+
</div>
36

47
<form name="form" class="user-form" (ngSubmit)="onSubmit()" [formGroup]="userForm">
58
<div class="form-group" formGroupName="profile">

app/webFrontend/src/app/user/user-edit/user-edit.component.scss

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
.user-icon {
2+
background-size: cover;
3+
border-radius: 1.25rem;
4+
display: inline-block;
5+
height: 2.5rem;
6+
margin-bottom: 20px;
7+
vertical-align: middle;
8+
width: 2.5rem;
9+
}
10+
111
.user-form {
212
width: 300px;
313

app/webFrontend/src/app/user/user-edit/user-edit.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export class UserEditComponent implements OnInit {
156156
this.userService.setUser(response.user);
157157
}
158158
this.snackBar.open('User image successfully uploaded.', '', {duration: 3000});
159+
this.updateUser();
159160
}
160161
}
161162

0 commit comments

Comments
 (0)