mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
dont show list options
This commit is contained in:
parent
383daf6f64
commit
cf85c9c6cd
2 changed files with 11 additions and 11 deletions
|
|
@ -26,6 +26,7 @@ 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
|
||||||
|
unless currentUser.isCommentOnly
|
||||||
ul.pop-over-list
|
ul.pop-over-list
|
||||||
li: a.js-add-card {{_ 'add-card'}}
|
li: a.js-add-card {{_ 'add-card'}}
|
||||||
if cards.count
|
if cards.count
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue