diff options
Diffstat (limited to 'client/components/boards/boardsList.js')
-rw-r--r-- | client/components/boards/boardsList.js | 15 |
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); |