summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardsList.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-04-06 08:46:40 +0300
committerLauri Ojansivu <x@xet7.org>2019-04-06 08:46:40 +0300
commit56cccc678107a94d4cadb13f3b6138cef93a18b0 (patch)
treec3bef1326c7d328506e3bc38e6223fbf3f205c25 /client/components/boards/boardsList.js
parentb680bb53725103f186ac1c7cb604fbd4a5773051 (diff)
parent48216e16537d50a27579c545c93624c0302a5a78 (diff)
downloadwekan-56cccc678107a94d4cadb13f3b6138cef93a18b0.tar.gz
wekan-56cccc678107a94d4cadb13f3b6138cef93a18b0.tar.bz2
wekan-56cccc678107a94d4cadb13f3b6138cef93a18b0.zip
Merge remote-tracking branch 'Angtrim/feature-duplicate' into edge
Diffstat (limited to 'client/components/boards/boardsList.js')
-rw-r--r--client/components/boards/boardsList.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index 3aacdedb..ad28fee8 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.js
@@ -55,6 +55,21 @@ BlazeComponent.extendComponent({
Meteor.user().toggleBoardStar(boardId);
evt.preventDefault();
},
+ 'click .js-clone-board'(evt) {
+ Meteor.call('cloneBoard',
+ this.currentData()._id,
+ Session.get('fromBoard'),
+ (err, res) => {
+ if (err) {
+ this.setError(err.error);
+ } else {
+ Session.set('fromBoard', null);
+ Utils.goBoardId(res);
+ }
+ }
+ );
+ evt.preventDefault();
+ },
'click .js-accept-invite'() {
const boardId = this.currentData()._id;
Meteor.user().removeInvite(boardId);