Merge pull request #65 from BaobabCoder/devel

Remove a list
This commit is contained in:
Lauri Ojansivu 2017-02-03 11:07:48 +02:00 committed by GitHub
commit 8bd7d624da
24 changed files with 44 additions and 1 deletions

View file

@ -47,6 +47,9 @@ template(name="boardActivities")
if($eq activityType 'createList')
| {{_ 'activity-added' list.title boardLabel}}.
if($eq activityType 'removeList')
| {{_ 'activity-removed' title boardLabel}}.
if($eq activityType 'importBoard')
| {{{_ 'activity-imported-board' boardLabel sourceLink}}}.

View file

@ -33,6 +33,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

@ -60,4 +60,10 @@ Template.listActionPopup.events({
this.archive();
Popup.close();
},
'click .js-remove-list'(evt) {
const currentList = this;
evt.preventDefault();
Lists.remove(currentList._id);
Popup.close();
},
});