dont show list options

This commit is contained in:
Ryan Helsing 2017-03-18 15:27:24 -04:00
parent 383daf6f64
commit cf85c9c6cd
2 changed files with 11 additions and 11 deletions

View file

@ -26,16 +26,17 @@ template(name="listActionPopup")
ul.pop-over-list ul.pop-over-list
li: a.js-toggle-watch-list {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}} li: a.js-toggle-watch-list {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}}
hr hr
ul.pop-over-list unless currentUser.isCommentOnly
li: a.js-add-card {{_ 'add-card'}} ul.pop-over-list
if cards.count li: a.js-add-card {{_ 'add-card'}}
li: a.js-select-cards {{_ 'list-select-cards'}} if cards.count
hr li: a.js-select-cards {{_ 'list-select-cards'}}
ul.pop-over-list hr
li: a.js-close-list {{_ 'archive-list'}} ul.pop-over-list
hr li: a.js-close-list {{_ 'archive-list'}}
ul.pop-over-list hr
li: a.js-remove-list {{_ 'remove-list'}} ul.pop-over-list
li: a.js-remove-list {{_ 'remove-list'}}
template(name="boardLists") template(name="boardLists")
ul.pop-over-list ul.pop-over-list

View file

@ -323,7 +323,6 @@ Template.changePermissionsPopup.events({
const memberId = this.userId; const memberId = this.userId;
const isAdmin = $(event.currentTarget).hasClass('js-set-admin'); const isAdmin = $(event.currentTarget).hasClass('js-set-admin');
const isCommentOnly = $(event.currentTarget).hasClass('js-set-comment-only'); const isCommentOnly = $(event.currentTarget).hasClass('js-set-comment-only');
console.log(isCommentOnly)
currentBoard.setMemberPermission(memberId, isAdmin, isCommentOnly); currentBoard.setMemberPermission(memberId, isAdmin, isCommentOnly);
Popup.back(1); Popup.back(1);
}, },