diff options
-rw-r--r-- | client/components/cards/cardDetails.jade | 3 | ||||
-rw-r--r-- | client/components/cards/cardDetails.js | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade index c2ee4e8d..859b80c3 100644 --- a/client/components/cards/cardDetails.jade +++ b/client/components/cards/cardDetails.jade @@ -153,11 +153,12 @@ template(name="boardsAndLists") option(value="{{_id}}" selected) {{_ 'current'}} else option(value="{{_id}}") {{title}} + label {{_ 'lists'}}: ul.pop-over-list each aBoardLists li - if($eq ../_id _id) + if $eq ../_id _id a.disabled {{title}} ({{_ 'current'}}) else a.js-select-list= title diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index c358b306..f13404a5 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -1,3 +1,5 @@ +const subManager = new SubsManager(); + BlazeComponent.extendComponent({ mixins() { return [Mixins.InfiniteScrolling, Mixins.PerfectScrollbar]; @@ -231,13 +233,13 @@ BlazeComponent.extendComponent({ }, aBoardLists() { + subManager.subscribe('board', this.selectedBoard.get()); const board = Boards.findOne(this.selectedBoard.get()); return board.lists(); }, - events() { return [{ - 'change .js-select-boards' (evt) { + 'change .js-select-boards'(evt) { this.selectedBoard.set($(evt.currentTarget).val()); }, }]; |