diff options
author | guillaume <guillaume.cassou@orange.fr> | 2019-04-26 17:53:48 +0200 |
---|---|---|
committer | guillaume <guillaume.cassou@orange.fr> | 2019-04-26 17:53:48 +0200 |
commit | cdef8a33e4df1caf9c8796ded4d946a76acb28a0 (patch) | |
tree | a431793537f13907abcb68992c551ec450e567b4 /client/components/settings/peopleBody.js | |
parent | 11a91bfc786789df24a9e1d9a4b10365bfbd0deb (diff) | |
download | wekan-cdef8a33e4df1caf9c8796ded4d946a76acb28a0.tar.gz wekan-cdef8a33e4df1caf9c8796ded4d946a76acb28a0.tar.bz2 wekan-cdef8a33e4df1caf9c8796ded4d946a76acb28a0.zip |
Delete user feature
Diffstat (limited to 'client/components/settings/peopleBody.js')
-rw-r--r-- | client/components/settings/peopleBody.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/components/settings/peopleBody.js b/client/components/settings/peopleBody.js index 3ec96bb0..83cf14fa 100644 --- a/client/components/settings/peopleBody.js +++ b/client/components/settings/peopleBody.js @@ -98,6 +98,7 @@ Template.peopleRow.helpers({ Template.editUserPopup.onCreated(function() { this.authenticationMethods = new ReactiveVar([]); + this.errorMessage = new ReactiveVar(''); Meteor.call('getAuthenticationsEnabled', (_, result) => { if (result) { @@ -129,6 +130,9 @@ Template.editUserPopup.helpers({ const selected = Users.findOne(userId).authenticationMethod; return selected === 'ldap'; }, + errorMessage() { + return Template.instance().errorMessage.get(); + }, }); BlazeComponent.extendComponent({ @@ -220,4 +224,9 @@ Template.editUserPopup.events({ }); } else Popup.close(); }, + + 'click #deleteButton'() { + Users.remove(this.userId); + Popup.close(); + }, }); |