summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorBéranger Campardou <b.campardou@gmail.com>2017-01-12 16:14:51 +0100
committerBéranger Campardou <b.campardou@gmail.com>2017-01-12 16:14:51 +0100
commit64e36d48278f355da4e2c3f6e182ae22b33ddd5b (patch)
tree7024b55bf0d22cf83c02576931a1fddceccc3515 /client/components
parentb90d668fbc28f931bf8cdf536311ed1bf2d7d2a7 (diff)
downloadwekan-64e36d48278f355da4e2c3f6e182ae22b33ddd5b.tar.gz
wekan-64e36d48278f355da4e2c3f6e182ae22b33ddd5b.tar.bz2
wekan-64e36d48278f355da4e2c3f6e182ae22b33ddd5b.zip
Remove a list
Diffstat (limited to 'client/components')
-rw-r--r--client/components/lists/listHeader.jade3
-rw-r--r--client/components/lists/listHeader.js5
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);
+ }
});