diff options
author | benji <38424890+moserben16@users.noreply.github.com> | 2019-10-09 14:24:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 14:24:45 +0200 |
commit | 3064cdd3712d2014b0e340dc04faa1efa34b209d (patch) | |
tree | 33f6013c464a84ff4d7d30146358e03dfff02066 /client | |
parent | 417fed86056aa576eb2c964fac58f7e47ec81c4a (diff) | |
download | wekan-3064cdd3712d2014b0e340dc04faa1efa34b209d.tar.gz wekan-3064cdd3712d2014b0e340dc04faa1efa34b209d.tar.bz2 wekan-3064cdd3712d2014b0e340dc04faa1efa34b209d.zip |
Update attachments.js
added else condition to check if MAX_IMAGE_PIXEL is not set, so that it is possible to upload attachments using drag-and-drop or Ctrl+V without setting the environmental-variable.
If this change is not allowed, please document in the wiki, that this is necessary for a fully-running wekan-instance
Diffstat (limited to 'client')
-rw-r--r-- | client/components/cards/attachments.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js index 843f1eb7..59f173c9 100644 --- a/client/components/cards/attachments.js +++ b/client/components/cards/attachments.js @@ -131,6 +131,8 @@ Template.previewClipboardImagePopup.onRendered(() => { direct(results); }, }); + } else { + direct(results); } } }; |