diff options
Diffstat (limited to 'client/components/lists')
-rw-r--r-- | client/components/lists/listHeader.jade | 3 | ||||
-rw-r--r-- | client/components/lists/listHeader.js | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade index f9fe065f..aff059e8 100644 --- a/client/components/lists/listHeader.jade +++ b/client/components/lists/listHeader.jade @@ -29,6 +29,9 @@ template(name="listActionPopup") hr ul.pop-over-list li: a.js-close-list {{_ 'archive-list'}} + hr + ul.pop-over-list + li: a.js-remove-list {{_ 'remove-list'}} template(name="boardLists") ul.pop-over-list diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index c7ae8e62..641cdd3a 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -52,4 +52,9 @@ Template.listActionPopup.events({ this.archive(); Popup.close(); }, + 'click .js-remove-list'(evt) { + const currentList = this; + evt.preventDefault(); + Lists.remove(currentList._id); + } }); |