Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f59019cb
Unverified
Commit
f59019cb
authored
Jun 04, 2020
by
yann300
Committed by
GitHub
Jun 04, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2882 from ethereum/folder-delete
Fix Update UI After Folder Delete
parents
d26ee5c6
389d2816
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
file-explorer.js
src/app/files/file-explorer.js
+15
-4
No files found.
src/app/files/file-explorer.js
View file @
f59019cb
...
@@ -241,9 +241,14 @@ function fileExplorer (localRegistry, files, menuItems) {
...
@@ -241,9 +241,14 @@ 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
{
type
}
=
fileManager
.
currentFileProvider
()
const
provider
=
fileManager
.
currentFileProvider
()
self
.
updatePath
(
type
)
if
(
provider
)
{
const
{
type
}
=
provider
return
self
.
updatePath
(
type
)
}
self
.
updatePath
(
'browser'
)
}
}
},
()
=>
{})
},
()
=>
{})
}
}
...
@@ -287,8 +292,14 @@ function fileExplorer (localRegistry, files, menuItems) {
...
@@ -287,8 +292,14 @@ function fileExplorer (localRegistry, files, menuItems) {
if
(
!
removeFile
)
{
if
(
!
removeFile
)
{
tooltip
(
`Failed to remove file
${
key
}
.`
)
tooltip
(
`Failed to remove file
${
key
}
.`
)
}
else
{
}
else
{
const
{
type
}
=
fileManager
.
currentFileProvider
()
const
provider
=
fileManager
.
currentFileProvider
()
self
.
updatePath
(
type
)
if
(
provider
)
{
const
{
type
}
=
provider
return
self
.
updatePath
(
type
)
}
self
.
updatePath
(
'browser'
)
}
}
},
},
()
=>
{}
()
=>
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment