summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorDavid Renshaw <david@sandstorm.io>2016-09-26 11:40:43 -0400
committerDavid Renshaw <david@sandstorm.io>2016-11-03 23:42:00 -0400
commit1ad44de8c6774a7caee43eeecdafe1893234e890 (patch)
tree7bed0a308b9be4946f9a97e6efb3e42d31c4ebe7 /client
parent9f4300d38b248a147ac0fdf39bb607ffed5bae7e (diff)
downloadwekan-1ad44de8c6774a7caee43eeecdafe1893234e890.tar.gz
wekan-1ad44de8c6774a7caee43eeecdafe1893234e890.tar.bz2
wekan-1ad44de8c6774a7caee43eeecdafe1893234e890.zip
powerbox identity requests
Diffstat (limited to 'client')
-rw-r--r--client/components/sidebar/sidebar.jade10
-rw-r--r--client/components/sidebar/sidebar.js3
2 files changed, 9 insertions, 4 deletions
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade
index 4f5586cb..51600acf 100644
--- a/client/components/sidebar/sidebar.jade
+++ b/client/components/sidebar/sidebar.jade
@@ -30,10 +30,12 @@ template(name="membersWidget")
.board-widget-content
each currentBoard.activeMembers
+userAvatar(userId=this.userId showStatus=true)
- unless isSandstorm
- if currentUser.isBoardAdmin
- a.member.add-member.js-manage-board-members
- i.fa.fa-plus
+ if isSandstorm
+ a.member.add-member.sandstorm-powerbox-request-identity
+ i.fa.fa-plus
+ else if currentUser.isBoardAdmin
+ a.member.add-member.js-manage-board-members
+ i.fa.fa-plus
.clearfix
if isInvited
hr
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js
index 0af32f8f..f32a27c5 100644
--- a/client/components/sidebar/sidebar.js
+++ b/client/components/sidebar/sidebar.js
@@ -163,6 +163,9 @@ Template.membersWidget.helpers({
Template.membersWidget.events({
'click .js-member': Popup.open('member'),
'click .js-manage-board-members': Popup.open('addMember'),
+ 'click .sandstorm-powerbox-request-identity'() {
+ window.sandstormRequestIdentity();
+ },
'click .js-member-invite-accept'() {
const boardId = Session.get('currentBoard');
Meteor.user().removeInvite(boardId);