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()
}
async uploadFile () {
return await this.request.uploadFile()
async uploadFile (event) {
return await this.request.uploadFile(event)
}
async processCreateWorkspace (name) {

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

Loading…
Cancel
Save