add popup to confirm deleting one account

This commit is contained in:
guillaume 2019-07-30 11:42:43 +02:00
parent 7cc1ffcab2
commit 84ba42f42e
4 changed files with 12 additions and 6 deletions

View file

@ -243,8 +243,8 @@ Template.editUserPopup.events({
} else Popup.close();
},
'click #deleteButton'() {
'click #deleteButton': Popup.afterConfirm('userDelete', function() {
Users.remove(this.userId);
Popup.close();
},
}),
});