diff options
author | Johannes Zellner <johannes@nebulon.de> | 2017-06-12 09:30:03 +0200 |
---|---|---|
committer | Johannes Zellner <johannes@nebulon.de> | 2017-06-12 09:30:06 +0200 |
commit | 3d45c9610fce33a99d1b95aaa56eadf0bffd76b5 (patch) | |
tree | c8fb80eb0c8d26f95ca50d9e2a03eab6760f1cf3 /client/components/boards | |
parent | 76f6f8caa4a60aaf3b39d50c0599dcfadd7f30d8 (diff) | |
download | wekan-3d45c9610fce33a99d1b95aaa56eadf0bffd76b5.tar.gz wekan-3d45c9610fce33a99d1b95aaa56eadf0bffd76b5.tar.bz2 wekan-3d45c9610fce33a99d1b95aaa56eadf0bffd76b5.zip |
Reenable the export feature
Fixes #1055
Diffstat (limited to 'client/components/boards')
-rw-r--r-- | client/components/boards/boardHeader.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/client/components/boards/boardHeader.js b/client/components/boards/boardHeader.js index 10d9925a..ac5f9c33 100644 --- a/client/components/boards/boardHeader.js +++ b/client/components/boards/boardHeader.js @@ -15,17 +15,17 @@ Template.boardMenuPopup.events({ }), }); -// Template.boardMenuPopup.helpers({ -// exportUrl() { -// const boardId = Session.get('currentBoard'); -// const loginToken = Accounts._storedLoginToken(); -// return FlowRouter.url(`api/boards/${boardId}?authToken=${loginToken}`); -// }, -// exportFilename() { -// const boardId = Session.get('currentBoard'); -// return `wekan-export-board-${boardId}.json`; -// }, -// }); +Template.boardMenuPopup.helpers({ + exportUrl() { + const boardId = Session.get('currentBoard'); + const loginToken = Accounts._storedLoginToken(); + return FlowRouter.url(`api/boards/${boardId}/export?authToken=${loginToken}`); + }, + exportFilename() { + const boardId = Session.get('currentBoard'); + return `wekan-export-board-${boardId}.json`; + }, +}); Template.boardChangeTitlePopup.events({ submit(evt, tpl) { |