Skip to content

Commit

Permalink
Start bulk CID import
Browse files Browse the repository at this point in the history
  • Loading branch information
MattWong-ca committed Nov 30, 2024
1 parent e2ae110 commit 16c9c92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bundles/files/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ const actions = () => ({
* @param {string} src
* @param {string} name
*/
// HERE
doFilesAddPath: (root, src, name = '') => perform(ACTIONS.ADD_BY_PATH, async (ipfs, { store }) => {
ensureMFS(store)

Expand Down
5 changes: 5 additions & 0 deletions src/files/file-input/FileInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ class FileInput extends React.Component {
<NewFolderIcon className='fill-aqua w2 h2 mr1' />
{t('newFolder')}
</Option>
<Option onClick={this.onAddByPath} id='add-by-path' onCliTutorMode={() => this.onCliTutorMode(cliCmdKeys.FROM_IPFS)}
isCliTutorModeEnabled={isCliTutorModeEnabled}>
<DocumentIcon className='fill-aqua w2 mr1' />
Bulk CID Import
</Option>
</DropdownMenu>
</Dropdown>

Expand Down

0 comments on commit 16c9c92

Please sign in to comment.