current progress

This commit is contained in:
Ryan Helsing 2017-03-18 16:01:22 -04:00
parent cf85c9c6cd
commit ec9498fa62
7 changed files with 46 additions and 29 deletions

View file

@ -12,7 +12,7 @@ template(name="listBody")
.materialCheckBox.multi-selection-checkbox.js-toggle-multi-selection(
class="{{#if MultiSelection.isSelected _id}}is-checked{{/if}}")
+minicard(this)
if currentUser.isBoardMember
if canSeeAddCard
+inlinedForm(autoclose=false position="bottom")
+addCardForm(listId=_id position="bottom")
else

View file

@ -239,3 +239,10 @@ BlazeComponent.extendComponent({
});
},
}).register('addCardForm');
Template.listBody.helpers({
canSeeAddCard() {
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
},
});

View file

@ -25,8 +25,8 @@ template(name="editListTitleForm")
template(name="listActionPopup")
ul.pop-over-list
li: a.js-toggle-watch-list {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}}
hr
unless currentUser.isCommentOnly
hr
ul.pop-over-list
li: a.js-add-card {{_ 'add-card'}}
if cards.count