Remove a list

This commit is contained in:
Béranger Campardou 2017-01-12 16:14:51 +01:00
parent b90d668fbc
commit 64e36d4827
21 changed files with 35 additions and 8 deletions

View file

@ -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

View file

@ -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);
}
});