Commit 04b0a419 authored by yann300's avatar yann300

fix open file

parent 6ae7edd7
...@@ -167,8 +167,8 @@ module.exports = class Filepanel extends ViewPlugin { ...@@ -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) => { ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment