Closed oliverfoster closed 3 years ago
@jarekwg Is this feasible? Have you managed to take a look?
Hi @oliverfoster, sorry for the wait. I'll get one of my colleagues to take a look soon.
No worries, happy to amend if they've suggestions.
Hi, @jarekwg @oliverfoster @olivermartinfoster onDownloadFolder not working. I'm unable to download a folder. However, download files are working. <FileBrowser onDownloadFile={arrayOfSelectedItems => { console.log('downloadFile', arrayOfSelectedItems) }} onDownloadFolder={(arrayOfSelectedFolders) => { console.log('downloadFolder', arrayOfSelectedFolders) }} /> I'm getting console for onDownloadFile, but no download button when I click on folder. Thanks in advance
Also, there is only below code in browser.js in node modules. actionRenderer: ActionRenderer, onCreateFolder, onRenameFile, onRenameFolder, onDeleteFile, onDeleteFolder, onDownloadFile
There is no onDownloadFolder anywhere in the browser.js
These changes haven't been released yet. You'd have to use the master branch. Are you sure you have the code from this pr?
resolve #133
Added
getFiles
function to encapsulate thefiles
part of therender
functiongetSelectedItems
function to encapsulate theselectedItems
part of therender
functioncanDownloadFolder
andonDownloadFolder
functions and their configsChanged
handleActionBarDownloadClick
function to check if the selection is a folder using newgetFiles
andgetSelectedItems
functionsrender
function uses the newgetFiles
andgetSelectedItems
functionsutils.isFolder
rather than asize === 0
comparison for folders