fixed home actions

pull/5370/head
lianahus 4 years ago committed by Liana Husikyan
parent e421265c6b
commit eb2a4e46a4
  1. 1
      apps/remix-ide/src/app/files/fileManager.js
  2. 2
      apps/remix-ide/src/app/files/workspaceFileProvider.js
  3. 2
      apps/remix-ide/src/app/panels/file-panel.js

@ -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
}

@ -81,7 +81,7 @@ class WorkspaceFileProvider extends FileProvider {
}
createDefaultWorkspace () {
this.workspace = 'workspace_default'
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)
}

Loading…
Cancel
Save