summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-07-18 10:08:59 +0300
committerLauri Ojansivu <x@xet7.org>2020-07-18 10:08:59 +0300
commitb9a4b0b51d3692fcbb715b1afc875f21cd204ae5 (patch)
tree0faac3902c76fc136d3dd8a4189cc6b93e6948cb /models
parent1a49d25c9082bd6bb32b145e2ab289f3f1c401fd (diff)
downloadwekan-b9a4b0b51d3692fcbb715b1afc875f21cd204ae5.tar.gz
wekan-b9a4b0b51d3692fcbb715b1afc875f21cd204ae5.tar.bz2
wekan-b9a4b0b51d3692fcbb715b1afc875f21cd204ae5.zip
Add support for EdgeHTML browser (Microsoft Legacy Edge, not based on Chromium) by removing incompatible csv-stringify package.
CSV export will be fixed later. Thanks to xet7 ! Closes #3125
Diffstat (limited to 'models')
-rw-r--r--models/exporter.js54
1 files changed, 30 insertions, 24 deletions
diff --git a/models/exporter.js b/models/exporter.js
index b6188ece..3b3589f6 100644
--- a/models/exporter.js
+++ b/models/exporter.js
@@ -1,7 +1,8 @@
-const stringify = require('csv-stringify');
+// const stringify = require('csv-stringify');
// exporter maybe is broken since Gridfs introduced, add fs and path
export class Exporter {
+ /*
constructor(boardId) {
this._boardId = boardId;
}
@@ -240,29 +241,29 @@ export class Exporter {
}
i++;
});
- /* TODO: Try to get translations working.
- These currently only bring English translations.
- TAPi18n.__('title'),
- TAPi18n.__('description'),
- TAPi18n.__('status'),
- TAPi18n.__('swimlane'),
- TAPi18n.__('owner'),
- TAPi18n.__('requested-by'),
- TAPi18n.__('assigned-by'),
- TAPi18n.__('members'),
- TAPi18n.__('assignee'),
- TAPi18n.__('labels'),
- TAPi18n.__('card-start'),
- TAPi18n.__('card-due'),
- TAPi18n.__('card-end'),
- TAPi18n.__('overtime-hours'),
- TAPi18n.__('spent-time-hours'),
- TAPi18n.__('createdAt'),
- TAPi18n.__('last-modified-at'),
- TAPi18n.__('last-activity'),
- TAPi18n.__('voting'),
- TAPi18n.__('archived'),
- */
+
+ // TODO: Try to get translations working.
+ // These currently only bring English translations.
+ // TAPi18n.__('title'),
+ // TAPi18n.__('description'),
+ // TAPi18n.__('status'),
+ // TAPi18n.__('swimlane'),
+ // TAPi18n.__('owner'),
+ // TAPi18n.__('requested-by'),
+ // TAPi18n.__('assigned-by'),
+ // TAPi18n.__('members'),
+ // TAPi18n.__('assignee'),
+ // TAPi18n.__('labels'),
+ // TAPi18n.__('card-start'),
+ // TAPi18n.__('card-due'),
+ // TAPi18n.__('card-end'),
+ // TAPi18n.__('overtime-hours'),
+ // TAPi18n.__('spent-time-hours'),
+ // TAPi18n.__('createdAt'),
+ // TAPi18n.__('last-modified-at'),
+ // TAPi18n.__('last-activity'),
+ // TAPi18n.__('voting'),
+ // TAPi18n.__('archived'),
const stringifier = stringify({
header: true,
@@ -395,4 +396,9 @@ export class Exporter {
const board = Boards.findOne(this._boardId);
return board && board.isVisibleBy(user);
}
+*/
+
+ canExport(user) {
+ return false;
+ }
}