summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardsList.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-05-10 20:50:53 +0300
committerLauri Ojansivu <x@xet7.org>2019-05-10 20:50:53 +0300
commit828f6ea321020eda77fea399df52889e2081dfac (patch)
tree94f0370da15ceb0022f618469c015fc8c76b80fc /client/components/boards/boardsList.js
parent7ff4067e88ed59686c86d81447fa2ce550032034 (diff)
downloadwekan-828f6ea321020eda77fea399df52889e2081dfac.tar.gz
wekan-828f6ea321020eda77fea399df52889e2081dfac.tar.bz2
wekan-828f6ea321020eda77fea399df52889e2081dfac.zip
- Add Feature: Move board to Archive button at each board at All Boards page.
Thanks to xet7 ! Related #2389
Diffstat (limited to 'client/components/boards/boardsList.js')
-rw-r--r--client/components/boards/boardsList.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index 8c45fbe2..e97070ee 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.js
@@ -70,6 +70,11 @@ BlazeComponent.extendComponent({
);
evt.preventDefault();
},
+ 'click .js-archive-board'(evt) {
+ const boardId = this.currentData()._id;
+ Meteor.call('archiveBoard', boardId);
+ evt.preventDefault();
+ },
'click .js-accept-invite'() {
const boardId = this.currentData()._id;
Meteor.user().removeInvite(boardId);