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
dcca04fa
Commit
dcca04fa
authored
May 18, 2021
by
aniket-engg
Committed by
Aniket
May 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handled checkbox display on switching from localhost
parent
24a433b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+1
-1
remix-ui-workspace.tsx
libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
+6
-1
No files found.
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
dcca04fa
...
...
@@ -92,7 +92,7 @@ class CompileTab extends ViewPlugin {
listenToEvents
()
{
this
.
on
(
'filePanel'
,
'setWorkspace'
,
(
workspace
)
=>
{
this
.
compileTabLogic
.
isHardhatProject
().
then
((
result
)
=>
{
if
(
result
)
this
.
compilerContainer
.
hardhatCompilation
.
style
.
display
=
'flex'
if
(
result
&&
workspace
.
isLocalhost
)
this
.
compilerContainer
.
hardhatCompilation
.
style
.
display
=
'flex'
else
this
.
compilerContainer
.
hardhatCompilation
.
style
.
display
=
'none'
})
})
...
...
libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
View file @
dcca04fa
...
...
@@ -91,7 +91,11 @@ export const Workspace = (props: WorkspaceProps) => {
const
localhostDisconnect
=
()
=>
{
if
(
state
.
currentWorkspace
===
LOCALHOST
)
setWorkspace
(
props
.
workspaces
.
length
>
0
?
props
.
workspaces
[
0
]
:
NO_WORKSPACE
)
else
setWorkspace
(
state
.
currentWorkspace
)
// Useful to switch to last selcted workspace when remixd is disconnected
// This should be removed some time after refactoring: https://github.com/ethereum/remix-project/issues/1197
else
{
setWorkspace
(
state
.
currentWorkspace
)
// Useful to switch to last selcted workspace when remixd is disconnected
props
.
fileManager
.
setMode
(
'browser'
)
}
}
props
.
localhost
.
event
.
unregister
(
'disconnected'
,
localhostDisconnect
)
props
.
localhost
.
event
.
register
(
'disconnected'
,
localhostDisconnect
)
...
...
@@ -251,6 +255,7 @@ export const Workspace = (props: WorkspaceProps) => {
// If 'connect to localhost' is clicked from home tab, mode is not 'localhost'
if
(
props
.
fileManager
.
mode
===
'localhost'
)
{
await
setWorkspace
(
NO_WORKSPACE
)
console
.
log
(
'remixdExplorer.hide'
)
props
.
fileManager
.
setMode
(
'browser'
)
setState
(
prevState
=>
{
return
{
...
prevState
,
hideRemixdExplorer
:
true
,
loadingLocalhost
:
false
}
...
...
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