mirror of
https://github.com/wekan/wekan.git
synced 2026-02-06 08:31:48 +01:00
Attachment size, changed calculation to npm filesize (Attachment Move)
This commit is contained in:
parent
3aba91885f
commit
464bc2f87b
2 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import Attachments, { fileStoreStrategyFactory } from '/models/attachments';
|
||||
const filesize = require('filesize');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
subscription: null,
|
||||
|
|
@ -108,6 +109,10 @@ BlazeComponent.extendComponent({
|
|||
}).register('moveBoardAttachments');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
fileSize(size) {
|
||||
const ret = filesize(size);
|
||||
return ret;
|
||||
},
|
||||
events() {
|
||||
return [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue