Attachment size, changed calculation to npm filesize (Card Details)

pull/4641/head
Martin Filser 3 years ago
parent af120f2e0b
commit 110a83a736
  1. 2
      client/components/cards/attachments.jade
  2. 3
      client/components/cards/attachments.js

@ -54,7 +54,7 @@ template(name="attachmentsGalery")
span.attachment-thumbnail-ext= extension
p.attachment-details
= name
span.file-size ({{fileSize size}} KB)
span.file-size ({{fileSize size}})
span.attachment-details-actions
a.js-download(href="{{link}}?download=true", download="{{name}}")
i.fa.fa-download

@ -16,7 +16,8 @@ Template.attachmentsGalery.helpers({
return Meteor.user().isBoardAdmin();
},
fileSize(size) {
return Math.round(size / 1024);
const ret = filesize(size);
return ret;
},
});

Loading…
Cancel
Save