Commit 98f5d8cc authored by lianahus's avatar lianahus Committed by Liana Husikyan

fixed home actions

parent c34ce4b4
......@@ -563,7 +563,6 @@ class FileManager extends Plugin {
if (file.startsWith('browser')) {
return this._deps.filesProviders.browser
}
const provider = this._deps.filesProviders.workspace
return this._deps.filesProviders.workspace
}
......
......@@ -80,8 +80,8 @@ class WorkspaceFileProvider extends FileProvider {
return path.replace(this.workspacesPath + '/' + this.workspace + '/', '')
}
createDefaultWorkspace() {
this.workspace = 'workspace_default'
createDefaultWorkspace () {
this.workspace = 'generated_workspace'
this.event.trigger('create_workspace_default', [this.workspace])
}
}
......
......@@ -175,10 +175,12 @@ module.exports = class Filepanel extends ViewPlugin {
}
async createNewFile () {
if (!this.workspaceExists()) this.createWorkspace('generated_workspace')
return await this.request.createNewFile()
}
async uploadFile (event) {
if (!this.workspaceExists()) this.createWorkspace('generated_workspace')
return await this.request.uploadFile(event)
}
......
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