mirror of
https://github.com/wekan/wekan.git
synced 2026-02-01 14:11:48 +01:00
Fix : export CSV, TSV and XLS translation
Feature : add export CSV with semicolon separator
This commit is contained in:
parent
bc9c7e5aa4
commit
11bf4c7c07
6 changed files with 115 additions and 112 deletions
|
|
@ -400,7 +400,11 @@ template(name="exportBoard")
|
|||
li
|
||||
a(href="{{exportCsvUrl}}", download="{{exportCsvFilename}}")
|
||||
i.fa.fa-share-alt
|
||||
| {{_ 'export-board-csv'}}
|
||||
| {{_ 'export-board-csv'}} ' , '
|
||||
li
|
||||
a(href="{{exportScsvUrl}}", download="{{exportCsvFilename}}")
|
||||
i.fa.fa-share-alt
|
||||
| {{_ 'export-board-csv'}} ' ; '
|
||||
li
|
||||
a(href="{{exportTsvUrl}}", download="{{exportTsvFilename}}")
|
||||
i.fa.fa-share-alt
|
||||
|
|
|
|||
|
|
@ -512,6 +512,21 @@ BlazeComponent.extendComponent({
|
|||
};
|
||||
const queryParams = {
|
||||
authToken: Accounts._storedLoginToken(),
|
||||
delimiter: ',',
|
||||
};
|
||||
return FlowRouter.path(
|
||||
'/api/boards/:boardId/export/csv',
|
||||
params,
|
||||
queryParams,
|
||||
);
|
||||
},
|
||||
exportScsvUrl() {
|
||||
const params = {
|
||||
boardId: Session.get('currentBoard'),
|
||||
};
|
||||
const queryParams = {
|
||||
authToken: Accounts._storedLoginToken(),
|
||||
delimiter: ';',
|
||||
};
|
||||
return FlowRouter.path(
|
||||
'/api/boards/:boardId/export/csv',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue