summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar/sidebar.jade
diff options
context:
space:
mode:
authoramadilsons <joao.amado.95@gmail.com>2017-10-09 14:49:03 +0200
committeramadilsons <joao.amado.95@gmail.com>2017-10-09 14:49:03 +0200
commit6ba1fc5ba1901a8cd8d7e8eb86e9ce70789d62e2 (patch)
treed519ed3f1780982795b2485fb39419c8e2d18bef /client/components/sidebar/sidebar.jade
parentc84187bdadb7f1afaa8211773d1d1cb986709099 (diff)
downloadwekan-6ba1fc5ba1901a8cd8d7e8eb86e9ce70789d62e2.tar.gz
wekan-6ba1fc5ba1901a8cd8d7e8eb86e9ce70789d62e2.tar.bz2
wekan-6ba1fc5ba1901a8cd8d7e8eb86e9ce70789d62e2.zip
user can now leave the board
Diffstat (limited to 'client/components/sidebar/sidebar.jade')
-rw-r--r--client/components/sidebar/sidebar.jade18
1 files changed, 11 insertions, 7 deletions
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade
index 6045b371..6085c2ad 100644
--- a/client/components/sidebar/sidebar.jade
+++ b/client/components/sidebar/sidebar.jade
@@ -82,23 +82,27 @@ template(name="memberPopup")
ul.pop-over-list
li
a.js-filter-member {{_ 'filter-cards'}}
- if currentUser.isBoardAdmin
- unless isSandstorm
+ unless isSandstorm
+ if currentUser.isBoardAdmin
li
a.js-change-role
| {{_ 'change-permissions'}}
span.quiet (#{memberType})
- li
- if $eq currentUser._id userId
- a.js-leave-member {{_ 'leave-board'}}
- else
- a.js-remove-member {{_ 'remove-from-board'}}
+ li
+ if $eq currentUser._id userId
+ a.js-leave-member {{_ 'leave-board'}}
+ else if currentUser.isBoardAdmin
+ a.js-remove-member {{_ 'remove-from-board'}}
template(name="removeMemberPopup")
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="leaveBoardPopup")
+ p {{_ 'leave-board-pop' boardTitle=board.title}}
+ button.js-confirm.negate.full(type="submit") {{_ 'leave-board'}}
+
template(name="addMemberPopup")
.js-search-member
+esInput(index="users")