diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2019-02-12 23:40:12 +0100 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2019-02-12 23:40:12 +0100 |
commit | 477d71e0b90d15b54945a1a04cb0a649344075ae (patch) | |
tree | 3eccde9b00ff3d35b98e960cbb755c177ee14bda /client/components/boards | |
parent | d22964bcfd46ea4fd4860528b0c5e6f5d90812b6 (diff) | |
download | wekan-477d71e0b90d15b54945a1a04cb0a649344075ae.tar.gz wekan-477d71e0b90d15b54945a1a04cb0a649344075ae.tar.bz2 wekan-477d71e0b90d15b54945a1a04cb0a649344075ae.zip |
Fixes
Diffstat (limited to 'client/components/boards')
-rw-r--r-- | client/components/boards/boardsList.jade | 2 | ||||
-rw-r--r-- | client/components/boards/boardsList.js | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/client/components/boards/boardsList.jade b/client/components/boards/boardsList.jade index 89852570..109c25ed 100644 --- a/client/components/boards/boardsList.jade +++ b/client/components/boards/boardsList.jade @@ -22,6 +22,8 @@ template(name="boardList") i.fa.js-star-board( class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}" title="{{_ 'star-board-title'}}") + i.fa.js-clone-board( + class="fa-clone") if hasSpentTimeCards i.fa.js-has-spenttime-cards( diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index 1ed88146..68f4a1dc 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -42,6 +42,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); |