mirror of
https://github.com/wekan/wekan.git
synced 2025-12-26 20:28:48 +01:00
Merge pull request #435 from xavierpriour/devel
Export a board to JSON Fixes #396
This commit is contained in:
commit
299c429042
8 changed files with 166 additions and 0 deletions
|
|
@ -15,6 +15,18 @@ Template.boardMenuPopup.events({
|
|||
}),
|
||||
});
|
||||
|
||||
Template.boardMenuPopup.helpers({
|
||||
exportUrl() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
const loginToken = Accounts._storedLoginToken();
|
||||
return Meteor.absoluteUrl(`api/boards/${boardId}?authToken=${loginToken}`);
|
||||
},
|
||||
exportFilename() {
|
||||
const boardId = Session.get('currentBoard');
|
||||
return `wekan-export-board-${boardId}.json`;
|
||||
},
|
||||
});
|
||||
|
||||
Template.boardChangeTitlePopup.events({
|
||||
submit(evt, tpl) {
|
||||
const newTitle = tpl.$('.js-board-name').val().trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue