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
574cf958
Commit
574cf958
authored
Jan 09, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
label
parent
ca2fff8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ButtonNavigator.js
src/ui/ButtonNavigator.js
+5
-5
No files found.
src/ui/ButtonNavigator.js
View file @
574cf958
...
@@ -30,7 +30,7 @@ function ButtonNavigator (_parent, _traceManager) {
...
@@ -30,7 +30,7 @@ function ButtonNavigator (_parent, _traceManager) {
if
(
this
.
currentCall
.
reverted
)
{
if
(
this
.
currentCall
.
reverted
)
{
this
.
revertionPoint
=
this
.
currentCall
.
return
this
.
revertionPoint
=
this
.
currentCall
.
return
this
.
view
.
querySelector
(
'#reverted'
).
style
.
display
=
'block'
this
.
view
.
querySelector
(
'#reverted'
).
style
.
display
=
'block'
this
.
view
.
querySelector
(
'#reverted #outofgas'
).
style
.
display
=
this
.
currentCall
.
outOfGas
?
'
block
'
:
'none'
this
.
view
.
querySelector
(
'#reverted #outofgas'
).
style
.
display
=
this
.
currentCall
.
outOfGas
?
'
inline
'
:
'none'
this
.
view
.
querySelector
(
'#reverted #parenthasthrown'
).
style
.
display
=
'none'
this
.
view
.
querySelector
(
'#reverted #parenthasthrown'
).
style
.
display
=
'none'
}
else
{
}
else
{
var
k
=
callsPath
.
length
-
2
var
k
=
callsPath
.
length
-
2
...
@@ -39,7 +39,7 @@ function ButtonNavigator (_parent, _traceManager) {
...
@@ -39,7 +39,7 @@ function ButtonNavigator (_parent, _traceManager) {
if
(
parent
.
reverted
)
{
if
(
parent
.
reverted
)
{
this
.
revertionPoint
=
parent
.
return
this
.
revertionPoint
=
parent
.
return
this
.
view
.
querySelector
(
'#reverted'
).
style
.
display
=
'block'
this
.
view
.
querySelector
(
'#reverted'
).
style
.
display
=
'block'
this
.
view
.
querySelector
(
'#reverted #parenthasthrown'
).
style
.
display
=
parent
?
'
block
'
:
'none'
this
.
view
.
querySelector
(
'#reverted #parenthasthrown'
).
style
.
display
=
parent
?
'
inline
'
:
'none'
this
.
view
.
querySelector
(
'#reverted #outofgas'
).
style
.
display
=
'none'
this
.
view
.
querySelector
(
'#reverted #outofgas'
).
style
.
display
=
'none'
return
return
}
}
...
@@ -72,11 +72,11 @@ ButtonNavigator.prototype.render = function () {
...
@@ -72,11 +72,11 @@ ButtonNavigator.prototype.render = function () {
<button id='jumpout' title='jump out' class='fa fa-share' style=
${
ui
.
formatCss
(
style
.
button
)}
onclick=
${
function
()
{
self
.
event
.
trigger
(
'jumpOut'
)
}
} disabled=
${
this
.
jumpOutDisabled
}
>
<button id='jumpout' title='jump out' class='fa fa-share' style=
${
ui
.
formatCss
(
style
.
button
)}
onclick=
${
function
()
{
self
.
event
.
trigger
(
'jumpOut'
)
}
} disabled=
${
this
.
jumpOutDisabled
}
>
</button>
</button>
<div id='reverted' style="display:none">
<div id='reverted' style="display:none">
<span>State changes made during this call were reverted.</span>
<span id='outofgas' style="display:none">This call ran out of gas</span>
<span id='parenthasthrown' style="display:none">The parent call has trown an exception</span>
<button id='jumptoexception' title='jump to exception' class='fa fa-exclamation-triangle' style=
${
ui
.
formatCss
(
style
.
button
)}
onclick=
${
function
()
{
self
.
event
.
trigger
(
'jumpToException'
,
[
self
.
revertionPoint
])
}
} disabled=
${
this
.
jumpOutDisabled
}
>
<button id='jumptoexception' title='jump to exception' class='fa fa-exclamation-triangle' style=
${
ui
.
formatCss
(
style
.
button
)}
onclick=
${
function
()
{
self
.
event
.
trigger
(
'jumpToException'
,
[
self
.
revertionPoint
])
}
} disabled=
${
this
.
jumpOutDisabled
}
>
</button>
</button>
<span>State changes made during this call will be reverted.</span>
<span id='outofgas' style="display:none">This call will run out of gas.</span>
<span id='parenthasthrown' style="display:none">The parent call will throw an exception</span>
</div>
</div>
</div>`
</div>`
if
(
!
this
.
view
)
{
if
(
!
this
.
view
)
{
...
...
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