mirror of
https://github.com/wekan/wekan.git
synced 2026-01-22 01:06:09 +01:00
Attachment size, changed calculation to npm filesize (Card Details)
This commit is contained in:
parent
af120f2e0b
commit
110a83a736
2 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue