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
0c9bdd41
Commit
0c9bdd41
authored
Jan 29, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use addToolTip
parent
d969ea26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
run-tab.js
src/app/tabs/run-tab.js
+4
-2
No files found.
src/app/tabs/run-tab.js
View file @
0c9bdd41
...
...
@@ -10,6 +10,7 @@ var executionContext = require('../../execution-context')
var
copyToClipboard
=
require
(
'../ui/copy-to-clipboard'
)
var
Recorder
=
require
(
'../../recorder'
)
var
EventManager
=
require
(
'remix-lib'
).
EventManager
var
addTooltip
=
require
(
'../ui/tooltip'
)
// -------------- styling ----------------------
var
csjs
=
require
(
'csjs-inject'
)
...
...
@@ -270,7 +271,7 @@ function fillAccountsList (appAPI, container) {
var
$txOrigin
=
$
(
container
.
querySelector
(
'#txorigin'
))
$txOrigin
.
empty
()
appAPI
.
udapp
().
getAccounts
((
err
,
accounts
)
=>
{
if
(
err
)
{
console
.
log
(
err
)
}
if
(
err
)
{
addTooltip
(
`Cannot get account list:
${
err
}
`
)
}
if
(
accounts
&&
accounts
[
0
])
{
for
(
var
a
in
accounts
)
{
$txOrigin
.
append
(
$
(
'<option />'
).
val
(
accounts
[
a
]).
text
(
accounts
[
a
]))
}
$txOrigin
.
val
(
accounts
[
0
])
...
...
@@ -535,8 +536,9 @@ function settings (container, appAPI, appEvents) {
appAPI
.
newAccount
(
''
,
(
error
,
address
)
=>
{
if
(
!
error
)
{
container
.
querySelector
(
'#txorigin'
).
appendChild
(
yo
`<option value=
${
address
}
>
${
address
}
</option>`
)
addTooltip
(
`account
${
address
}
created`
)
}
else
{
modalDialogCustom
.
alert
(
'Cannot create an account: '
+
error
)
addTooltip
(
'Cannot create an account: '
+
error
)
}
})
}
...
...
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