make sure we update path for the assigned "files.type"

pull/11/head
yann300 5 years ago committed by ioedeveloper
parent 390d133706
commit c8fc7c9799
  1. 18
      apps/remix-ide/src/app/files/file-explorer.js

@ -241,14 +241,7 @@ function fileExplorer (localRegistry, files, menuItems) {
if (!removeFolder) { if (!removeFolder) {
tooltip(`failed to remove ${key}. Make sure the directory is empty before removing it.`) tooltip(`failed to remove ${key}. Make sure the directory is empty before removing it.`)
} else { } else {
const provider = fileManager.currentFileProvider() self.updatePath(self.files.type)
if (provider) {
const { type } = provider
return self.updatePath(type)
}
self.updatePath('browser')
} }
}, () => {}) }, () => {})
} }
@ -292,14 +285,7 @@ function fileExplorer (localRegistry, files, menuItems) {
if (!removeFile) { if (!removeFile) {
tooltip(`Failed to remove file ${key}.`) tooltip(`Failed to remove file ${key}.`)
} else { } else {
const provider = fileManager.currentFileProvider() self.updatePath(self.files.type)
if (provider) {
const { type } = provider
return self.updatePath(type)
}
self.updatePath('browser')
} }
}, },
() => {} () => {}

Loading…
Cancel
Save