diff options
author | Ryan Helsing <ryanhelsing@gmail.com> | 2017-03-18 15:27:24 -0400 |
---|---|---|
committer | Ryan Helsing <ryanhelsing@gmail.com> | 2017-03-18 15:27:24 -0400 |
commit | cf85c9c6cda86ede8fdfe746a8affc33b8ba4719 (patch) | |
tree | 4c56b7ff45054b28834df95aef97e031726c65b5 /client | |
parent | 383daf6f6416e6e3dfe98cf9fcc5528948f35999 (diff) | |
download | wekan-cf85c9c6cda86ede8fdfe746a8affc33b8ba4719.tar.gz wekan-cf85c9c6cda86ede8fdfe746a8affc33b8ba4719.tar.bz2 wekan-cf85c9c6cda86ede8fdfe746a8affc33b8ba4719.zip |
dont show list options
Diffstat (limited to 'client')
-rw-r--r-- | client/components/lists/listHeader.jade | 21 | ||||
-rw-r--r-- | client/components/sidebar/sidebar.js | 1 |
2 files changed, 11 insertions, 11 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade index 29aa4282..ae178c94 100644 --- a/client/components/lists/listHeader.jade +++ b/client/components/lists/listHeader.jade @@ -26,16 +26,17 @@ template(name="listActionPopup") ul.pop-over-list li: a.js-toggle-watch-list {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}} hr - ul.pop-over-list - li: a.js-add-card {{_ 'add-card'}} - if cards.count - li: a.js-select-cards {{_ 'list-select-cards'}} - hr - ul.pop-over-list - li: a.js-close-list {{_ 'archive-list'}} - hr - ul.pop-over-list - li: a.js-remove-list {{_ 'remove-list'}} + unless currentUser.isCommentOnly + ul.pop-over-list + li: a.js-add-card {{_ 'add-card'}} + if cards.count + li: a.js-select-cards {{_ 'list-select-cards'}} + hr + ul.pop-over-list + li: a.js-close-list {{_ 'archive-list'}} + hr + ul.pop-over-list + li: a.js-remove-list {{_ 'remove-list'}} template(name="boardLists") ul.pop-over-list diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js index 043662a2..92712e28 100644 --- a/client/components/sidebar/sidebar.js +++ b/client/components/sidebar/sidebar.js @@ -323,7 +323,6 @@ Template.changePermissionsPopup.events({ const memberId = this.userId; const isAdmin = $(event.currentTarget).hasClass('js-set-admin'); const isCommentOnly = $(event.currentTarget).hasClass('js-set-comment-only'); - console.log(isCommentOnly) currentBoard.setMemberPermission(memberId, isAdmin, isCommentOnly); Popup.back(1); }, |