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
8eaaf352
Commit
8eaaf352
authored
Sep 06, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3 options : only remix transactions / all transactions / script
parent
98027476
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
terminal.js
src/app/panels/terminal.js
+19
-5
No files found.
src/app/panels/terminal.js
View file @
8eaaf352
...
...
@@ -136,17 +136,30 @@ class Terminal {
self
.
_components
=
{}
self
.
_components
.
dropdown
=
new
Dropdown
({
options
:
[
'
knownTransaction
'
,
'
unknownTransaction
'
,
'
only remix transactions
'
,
'
all transactions
'
,
'script'
],
defaults
:
[
'knownTransaction'
,
'script'
]
defaults
:
[
'only remix transactions'
,
'script'
],
dependencies
:
{
'all transactions'
:
[
'only remix transactions'
],
'only remix transactions'
:
[
'all transactions'
]}
})
self
.
_components
.
dropdown
.
event
.
register
(
'deselect'
,
function
(
label
)
{
self
.
updateJournal
({
type
:
'deselect'
,
value
:
label
})
if
(
label
===
'only remix transactions'
)
{
self
.
updateJournal
({
type
:
'select'
,
value
:
'unknownTransaction'
})
}
else
if
(
label
===
'all transactions'
)
{
self
.
updateJournal
({
type
:
'deselect'
,
value
:
'unknownTransaction'
})
}
else
{
// script
self
.
updateJournal
({
type
:
'deselect'
,
value
:
label
})
}
})
self
.
_components
.
dropdown
.
event
.
register
(
'select'
,
function
(
label
)
{
self
.
updateJournal
({
type
:
'select'
,
value
:
label
})
if
(
label
===
'only remix transactions'
)
{
self
.
updateJournal
({
type
:
'deselect'
,
value
:
'unknownTransaction'
})
}
else
if
(
label
===
'all transactions'
)
{
self
.
updateJournal
({
type
:
'select'
,
value
:
'unknownTransaction'
})
}
else
{
// script
self
.
updateJournal
({
type
:
'select'
,
value
:
label
})
}
})
self
.
_commands
=
{}
self
.
commands
=
{}
...
...
@@ -172,6 +185,7 @@ class Terminal {
self
.
_jsSandbox
=
vm
.
createContext
(
self
.
_jsSandboxContext
)
if
(
opts
.
shell
)
self
.
_shell
=
opts
.
shell
register
(
self
)
self
.
updateJournal
({
type
:
'select'
,
value
:
'knownTransaction'
})
}
render
()
{
var
self
=
this
...
...
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