summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorXavier Priour <xavier.priour@bubblyware.com>2015-12-09 00:35:45 +0100
committerXavier Priour <xavier.priour@bubblyware.com>2015-12-09 00:35:45 +0100
commitf20b5d04f5e095de3348251ba669c5b13789298f (patch)
tree6998814f7ec578c3d173f4366ff8981d706730be /client
parentb719968df5577af6dd69eb32f6c2e2a43a322e87 (diff)
downloadwekan-f20b5d04f5e095de3348251ba669c5b13789298f.tar.gz
wekan-f20b5d04f5e095de3348251ba669c5b13789298f.tar.bz2
wekan-f20b5d04f5e095de3348251ba669c5b13789298f.zip
export board to Wekan JSON
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardHeader.jade1
-rw-r--r--client/components/boards/boardHeader.js6
2 files changed, 7 insertions, 0 deletions
diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade
index a0160382..3e608d4a 100644
--- a/client/components/boards/boardHeader.jade
+++ b/client/components/boards/boardHeader.jade
@@ -56,6 +56,7 @@ template(name="boardMenuPopup")
if currentUser.isBoardAdmin
hr
ul.pop-over-list
+ li: a.js-export-board(href="{{urlExport}}", download) {{_ 'export-board'}}
li: a.js-archive-board {{_ 'archive-board'}}
template(name="boardVisibilityList")
diff --git a/client/components/boards/boardHeader.js b/client/components/boards/boardHeader.js
index 3dc6d754..3503cbfb 100644
--- a/client/components/boards/boardHeader.js
+++ b/client/components/boards/boardHeader.js
@@ -15,6 +15,12 @@ Template.boardMenuPopup.events({
}),
});
+Template.boardMenuPopup.helpers({
+ urlExport() {
+ return Meteor.absoluteUrl(`api/b/${Session.get('currentBoard')}`);
+ },
+});
+
Template.boardChangeTitlePopup.events({
submit(evt, tpl) {
const newTitle = tpl.$('.js-board-name').val().trim();