Removing directory size because it is too slow.

This commit is contained in:
Roland 2024-02-13 16:15:23 -07:00
parent d34dbe7229
commit 47b9d6618c
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 1 additions and 39 deletions

View file

@ -61,14 +61,11 @@ function Folder({folder, onFolderClick, sortData, selectedPaths, onFileClick, on
<TableCell collapsing>
<Checkbox checked={selectedPaths.indexOf(folder['path']) >= 0} onChange={() => onSelect(folder['path'])}/>
</TableCell>
<TableCell onClick={() => onFolderClick(path)} className='file-path' disabled={is_empty}>
<TableCell onClick={() => onFolderClick(path)} className='file-path' colSpan={2} disabled={is_empty}>
{depthIndentation(pathWithNoTrailingSlash)}
{is_empty ? <Icon name='folder outline'/> : <Icon name='folder'/>}
{name}
</TableCell>
<TableCell collapsing textAlign='right'>
{size > 0 && humanFileSize(size)}
</TableCell>
</TableRow>;
if (children) {
// Folder has children, recursively display them.