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
840a0004
Unverified
Commit
840a0004
authored
Apr 14, 2020
by
yann300
Committed by
GitHub
Apr 14, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2714 from ethereum/terminalP
better query selection in terminal for expanding
parents
58abbd47
6f93f6cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
txLogger.js
src/app/ui/txLogger.js
+15
-7
No files found.
src/app/ui/txLogger.js
View file @
840a0004
...
@@ -348,13 +348,21 @@ module.exports = TxLogger
...
@@ -348,13 +348,21 @@ module.exports = TxLogger
// helpers
// helpers
function
txDetails
(
e
,
tx
,
data
,
obj
)
{
function
txDetails
(
e
,
tx
,
data
,
obj
)
{
var
table
=
document
.
querySelector
(
`#
${
tx
.
id
}
[class^="txTable"]`
)
const
from
=
obj
.
from
var
from
=
obj
.
from
const
to
=
obj
.
to
var
to
=
obj
.
to
const
arrowUp
=
yo
`<i class="
${
css
.
arrow
}
fas fa-angle-up"></i>`
var
log
=
document
.
querySelector
(
`#
${
tx
.
id
}
[class^='log']`
)
const
arrowDown
=
yo
`<i class="
${
css
.
arrow
}
fas fa-angle-down"></i>`
var
arrow
=
document
.
querySelector
(
`#
${
tx
.
id
}
[class^='arrow']`
)
var
arrowUp
=
yo
`<i class="
${
css
.
arrow
}
fas fa-angle-up"></i>`
let
blockElement
=
e
.
target
var
arrowDown
=
yo
`<i class="
${
css
.
arrow
}
fas fa-angle-down"></i>`
while
(
true
)
{
// get the parent block element
if
(
blockElement
.
className
.
startsWith
(
'block'
))
break
else
blockElement
=
blockElement
.
parentElement
}
let
table
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^="txTable"]`
)
const
log
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^='log']`
)
const
arrow
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^='arrow']`
)
if
(
table
&&
table
.
parentNode
)
{
if
(
table
&&
table
.
parentNode
)
{
tx
.
removeChild
(
table
)
tx
.
removeChild
(
table
)
log
.
removeChild
(
arrow
)
log
.
removeChild
(
arrow
)
...
...
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