diff options
Diffstat (limited to 'app/client/common/fileList.component.js')
| -rw-r--r-- | app/client/common/fileList.component.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/client/common/fileList.component.js b/app/client/common/fileList.component.js index 1108dbf..b71faae 100644 --- a/app/client/common/fileList.component.js +++ b/app/client/common/fileList.component.js @@ -64,6 +64,7 @@ export const FileRow = props => { const size = util.hush_size(file.size) const date = file.date || file.created_at const epoch = file.epoch || file.epochs || 0 + const count = file.count || 0 let name; let key; @@ -88,7 +89,7 @@ export const FileRow = props => { {file.persisted === false ? <span className='unpersisted'>{name}</span> : (linkFiles && file.url) - ? <a target='_blank' onClick={(e) => { if (!(e.metaKey || e.ctrlKey || e.altKey)) { e.preventDefault(); onClick && onClick(file, e) }}} href={file.url}>{name}</a> + ? <a target='_blank' onClick={(e) => { if (!(e.metaKey || e.ctrlKey || e.altKey) && onClick) { e.preventDefault(); onClick && onClick(file, e) }}} href={file.url}>{name}</a> : <span class='link' onClick={(e) => onClick && onClick(file, e)}>{name}</span> } </div> @@ -111,6 +112,9 @@ export const FileRow = props => { {fields.has('size') && <div className={"size " + size[0]}>{size[1]}</div> } + {fields.has('count') && + <div className={"count " + util.hush_null(count)[0]}>{count > 0 ? count + ' files' : ''}</div> + } {(fields.has('activity') || fields.has('module')) && <div className='activity'> {fields.has('activity') && file.activity} |
