summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2015-09-20 23:52:51 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2015-09-20 23:52:51 +0200
commitbf8f335ae7748ab43fa19aa6c9a6395180f22452 (patch)
tree2d1b3b6fc6cb03a828497214ddaa99c25d90aaac /client/components
parent33888f9fbbe61376c2390a9b6d07f123eda23624 (diff)
downloadwekan-bf8f335ae7748ab43fa19aa6c9a6395180f22452.tar.gz
wekan-bf8f335ae7748ab43fa19aa6c9a6395180f22452.tar.bz2
wekan-bf8f335ae7748ab43fa19aa6c9a6395180f22452.zip
Fix removeMemberPopup
The removeMemberPopup was missing the required helper to get the user and board information and the user profile field is called "fullname" and not "name".
Diffstat (limited to 'client/components')
-rw-r--r--client/components/sidebar/sidebar.jade2
-rw-r--r--client/components/sidebar/sidebar.js9
2 files changed, 10 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade
index b90b1b91..91047056 100644
--- a/client/components/sidebar/sidebar.jade
+++ b/client/components/sidebar/sidebar.jade
@@ -76,7 +76,7 @@ template(name="memberPopup")
template(name="removeMemberPopup")
- p {{_ 'remove-member-pop' name=user.profile.name username=user.username boardTitle=board.title}}
+ p {{_ 'remove-member-pop' name=user.profile.fullname username=user.username boardTitle=board.title}}
button.js-confirm.negate.full(type="submit") {{_ 'remove-member'}}
template(name="addMemberPopup")
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js
index 8c58c37e..ff65ad9d 100644
--- a/client/components/sidebar/sidebar.js
+++ b/client/components/sidebar/sidebar.js
@@ -137,6 +137,15 @@ Template.memberPopup.events({
},
});
+Template.removeMemberPopup.helpers({
+ user() {
+ return Users.findOne(this.userId);
+ },
+ board() {
+ return Boards.findOne(Session.get('currentBoard'));
+ },
+});
+
Template.membersWidget.events({
'click .js-member': Popup.open('member'),
'click .js-manage-board-members': Popup.open('addMember'),