Comment out Trello attachment import until it's implemented with API key.

Thanks to xet7 !

Related #4418
This commit is contained in:
Lauri Ojansivu 2022-04-06 18:47:27 +03:00
parent b7aaff5313
commit 49a996624f

View file

@ -447,15 +447,17 @@ export class TrelloCreator {
}); });
} }
}; };
if (att.url) { // TODO: Add import attachment with Trello API key
Attachment.load(att.url, opts, cb, true); // like Python code at wekan/trello/ of https://github.com/wekan/wekan
} else if (att.file) { //if (att.url) {
Attachment.write(att.file, opts, cb, true); // Attachment.load(att.url, opts, cb, true);
} //} else if (att.file) {
// Attachment.write(att.file, opts, cb, true);
//}
}); });
if (links !== undefined) { if (links) {
if (links.length !== undefined) { if (links.length) {
let desc = cardToCreate.description.trim(); let desc = cardToCreate.description.trim();
if (desc) { if (desc) {
desc += '\n\n'; desc += '\n\n';