Reset avatar if removed

This commit is contained in:
Tobias Wolf 2022-08-20 09:01:18 +02:00
parent c64a221453
commit 24566ce853
2 changed files with 12 additions and 4 deletions

View file

@ -230,8 +230,9 @@ BlazeComponent.extendComponent({
'click .js-select-initials'() {
this.setAvatar('');
},
'click .js-delete-avatar'() {
'click .js-delete-avatar'(event) {
Avatars.remove(this.currentData()._id);
event.stopPropagation();
},
},
];