Skip to content

Commit 7cf7d45

Browse files
mrsaicharan1abhinavk96
authored andcommitted
fix: profile picture removal fix (#3361)
1 parent b308cda commit 7cf7d45

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/components/widgets/forms/image-upload.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export default Component.extend({
7878
if (!this.needsConfirmation) {
7979
this.set('selectedImage', null);
8080
this.set('imageUrl', null);
81+
this.user.set('avatarUrl', null);
82+
this.user.save();
8183
} else {
8284
this.set('needsConfirmation', false);
8385
}

app/templates/components/forms/user-profile-form.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<div class="three wide column">
44
<div class="ui left floated eight wide column">
55
{{widgets/forms/image-upload
6+
user=user
67
imageUrl=user.avatarUrl
78
needsCropper=true
89
label=(t 'User Image')

0 commit comments

Comments
 (0)