From 0b3dc585a0b02a3426b45f5cd474f81a31d5bd7b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 16 Jan 2019 02:05:42 +0100 Subject: uprez ui --- app/client/common/fileList.component.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/client/common/fileList.component.js') diff --git a/app/client/common/fileList.component.js b/app/client/common/fileList.component.js index 12f6865..c4da4d7 100644 --- a/app/client/common/fileList.component.js +++ b/app/client/common/fileList.component.js @@ -17,7 +17,8 @@ export const FileList = props => { orderBy='name asc', className='', fileListClassName='filelist', - rowClassName='row file' + rowClassName='row file', + options, } = props const { mapFn, sortFn } = util.sort.orderByFn(orderBy) let sortedFiles = (files || []) @@ -36,6 +37,7 @@ export const FileList = props => { linkFiles={linkFiles} onDelete={onDelete} onClick={onClick} + options={options} /> }) if (!fileList || !fileList.length) { @@ -73,7 +75,7 @@ export const FileList = props => { } export const FileRow = props => { - const { file, linkFiles, onDelete, onClick, className='row file', username='' } = props + const { file, linkFiles, onDelete, onClick, className='row file', username='', options } = props const fields = fieldSet(props.fields) const size = util.hush_size(file.size) @@ -146,7 +148,7 @@ export const FileRow = props => { {fields.has('delete') && onDelete && file.id &&
onDelete(file)}>x
} - {props.options && props.options(file)} + {options && props.options(file)} ) } -- cgit v1.2.3-70-g09d2