diff options
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/lists/listHeader.jade | 12 | ||||
-rw-r--r-- | client/components/lists/listHeader.js | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade index 68336320..67fbe958 100644 --- a/client/components/lists/listHeader.jade +++ b/client/components/lists/listHeader.jade @@ -6,6 +6,11 @@ template(name="listHeader") h2.list-header-name( class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}") = title + if hasWipLimit + span.wip-limit + | ( + = wipLimit + | ) if showCardsCountForList cards.count = cards.count span.lowercase @@ -34,6 +39,9 @@ template(name="listActionPopup") li: a.js-select-cards {{_ 'list-select-cards'}} hr ul.pop-over-list + li: a.js-set-wip-limit {{#if hasWipLimit}}{{_ 'edit-wip-limit'}}{{else}}{{_ 'set-wip-limit'}}{{/if}} + hr + ul.pop-over-list li: a.js-close-list {{_ 'archive-list'}} hr ul.pop-over-list @@ -64,3 +72,7 @@ template(name="listDeletePopup") unless archived p {{_ "list-delete-suggest-archive"}} button.js-confirm.negate.full(type="submit") {{_ 'delete'}} + +template(name="setWipLimitPopup") + p {{_ 'set-wip-limit'}} + input(type="number") diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index 7fe42884..47fddd27 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -21,6 +21,11 @@ BlazeComponent.extendComponent({ return count > this.limitToShowCardsCount(); }, + hasWipLimit() { + return null; + //return this.currentData().wipLimit ? true : false; + }, + events() { return [{ 'click .js-open-list-menu': Popup.open('listAction'), @@ -61,6 +66,7 @@ Template.listActionPopup.events({ this.archive(); Popup.close(); }, + 'click .js-set-wip-limit': Popup.open('setWipLimit'), 'click .js-more': Popup.open('listMore'), }); |