Commit 04b0a419 authored by yann300's avatar yann300

fix open file

parent 6ae7edd7
......@@ -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()
......
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