fix open file

pull/5370/head
yann300 4 years ago
parent 84ac35149a
commit db53c97c0e
  1. 4
      apps/remix-ide/src/app/panels/file-panel.js
  2. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -167,8 +167,8 @@ module.exports = class Filepanel extends ViewPlugin {
return await this.request.createNewFile() return await this.request.createNewFile()
} }
async uploadFile () { async uploadFile (event) {
return await this.request.uploadFile() return await this.request.uploadFile(event)
} }
async processCreateWorkspace (name) { async processCreateWorkspace (name) {

@ -41,6 +41,8 @@ export const Workspace = (props: WorkspaceProps) => {
}) })
} }
props.plugin.resetUploadFile = () => {}
/* implement an external API, consumed by the parent */ /* implement an external API, consumed by the parent */
props.request.createWorkspace = () => { props.request.createWorkspace = () => {
return createWorkspace() return createWorkspace()

Loading…
Cancel
Save