summaryrefslogtreecommitdiffstats
path: root/client/components/settings
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-05-09 16:37:18 +0300
committerLauri Ojansivu <x@xet7.org>2019-05-09 16:37:18 +0300
commit34b1654077c791e583c9d9dbbc4e73c910b7d373 (patch)
treeb81e1d2604eeefb4f76ebaa6c0159ab00d4bf47f /client/components/settings
parent5dcd1b630e12010b186a42ab4431d410956b582b (diff)
parent7ff4067e88ed59686c86d81447fa2ce550032034 (diff)
downloadwekan-34b1654077c791e583c9d9dbbc4e73c910b7d373.tar.gz
wekan-34b1654077c791e583c9d9dbbc4e73c910b7d373.tar.bz2
wekan-34b1654077c791e583c9d9dbbc4e73c910b7d373.zip
Merge branch 'edge' into meteor-1.8
Diffstat (limited to 'client/components/settings')
-rw-r--r--client/components/settings/peopleBody.jade5
-rw-r--r--client/components/settings/peopleBody.js9
-rw-r--r--client/components/settings/peopleBody.styl12
3 files changed, 25 insertions, 1 deletions
diff --git a/client/components/settings/peopleBody.jade b/client/components/settings/peopleBody.jade
index 4dca5cb1..15deb005 100644
--- a/client/components/settings/peopleBody.jade
+++ b/client/components/settings/peopleBody.jade
@@ -107,5 +107,8 @@ template(name="editUserPopup")
label
| {{_ 'password'}}
input.js-profile-password(type="password")
+ div.buttonsContainer
+ input.primary.wide(type="submit" value="{{_ 'save'}}")
+ div
+ input#deleteButton.primary.wide(type="button" value="{{_ 'delete'}}")
- input.primary.wide(type="submit" value="{{_ 'save'}}")
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();
+ },
});
diff --git a/client/components/settings/peopleBody.styl b/client/components/settings/peopleBody.styl
index b98c5340..80387611 100644
--- a/client/components/settings/peopleBody.styl
+++ b/client/components/settings/peopleBody.styl
@@ -34,3 +34,15 @@ table
button
min-width: 60px;
+
+.content-wrapper
+ margin-top: 10px
+
+.buttonsContainer
+ display: flex
+
+ input
+ margin: 0
+
+ div
+ margin: auto