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
d4e18248
Commit
d4e18248
authored
Dec 25, 2017
by
Ravi Vagadia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue-612 - grey out content instead of showing loader.
added a new function setUpdating in DropdownPanel which greys out conent of dropdown while its waiting for updated value.
parent
ac571688
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
DropdownPanel.js
remix-debugger/src/ui/DropdownPanel.js
+7
-0
SolidityLocals.js
remix-debugger/src/ui/SolidityLocals.js
+1
-2
SolidityState.js
remix-debugger/src/ui/SolidityState.js
+1
-2
No files found.
remix-debugger/src/ui/DropdownPanel.js
View file @
d4e18248
...
...
@@ -67,10 +67,17 @@ DropdownPanel.prototype.setLoading = function () {
}
}
DropdownPanel
.
prototype
.
setUpdating
=
function
()
{
if
(
this
.
view
)
{
this
.
view
.
querySelector
(
'.dropdownpanel .dropdowncontent'
).
style
.
color
=
'gray'
}
}
DropdownPanel
.
prototype
.
update
=
function
(
_data
,
_header
)
{
if
(
this
.
view
)
{
this
.
view
.
querySelector
(
'.dropdownpanel .fa-refresh'
).
style
.
display
=
'none'
this
.
view
.
querySelector
(
'.dropdownpanel .dropdowncontent'
).
style
.
display
=
'block'
this
.
view
.
querySelector
(
'.dropdownpanel .dropdowncontent'
).
style
.
color
=
'black'
this
.
view
.
querySelector
(
'.dropdownpanel .dropdownrawcontent'
).
innerText
=
JSON
.
stringify
(
_data
,
null
,
'
\
t'
)
this
.
view
.
querySelector
(
'.dropdownpanel button.btn'
).
style
.
display
=
'block'
this
.
view
.
querySelector
(
'.title span'
).
innerText
=
_header
||
' '
...
...
remix-debugger/src/ui/SolidityLocals.js
View file @
d4e18248
...
...
@@ -33,7 +33,6 @@ class SolidityLocals {
init
()
{
var
decodeTimeout
=
null
this
.
parent
.
event
.
register
(
'sourceLocationChanged'
,
this
,
(
sourceLocation
)
=>
{
this
.
basicPanel
.
setMessage
(
''
)
if
(
!
this
.
storageResolver
)
{
this
.
basicPanel
.
setMessage
(
'storage not ready'
)
return
...
...
@@ -41,7 +40,7 @@ class SolidityLocals {
if
(
decodeTimeout
)
{
window
.
clearTimeout
(
decodeTimeout
)
}
this
.
basicPanel
.
set
Load
ing
()
this
.
basicPanel
.
set
Updat
ing
()
decodeTimeout
=
setTimeout
(()
=>
{
decode
(
this
,
sourceLocation
)
},
500
)
...
...
remix-debugger/src/ui/SolidityState.js
View file @
d4e18248
...
...
@@ -38,7 +38,6 @@ SolidityState.prototype.init = function () {
var
self
=
this
var
decodeTimeout
=
null
this
.
parent
.
event
.
register
(
'indexChanged'
,
this
,
function
(
index
)
{
self
.
basicPanel
.
setMessage
(
''
)
if
(
index
<
0
)
{
self
.
basicPanel
.
setMessage
(
'invalid step index'
)
return
...
...
@@ -56,7 +55,7 @@ SolidityState.prototype.init = function () {
if
(
decodeTimeout
)
{
window
.
clearTimeout
(
decodeTimeout
)
}
self
.
basicPanel
.
set
Load
ing
()
self
.
basicPanel
.
set
Updat
ing
()
decodeTimeout
=
setTimeout
(()
=>
{
decode
(
self
,
index
)
},
500
)
...
...
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