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
9a0f00f3
Commit
9a0f00f3
authored
Jul 11, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure the previous modal is hidden before open a new one
parent
0fb28363
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
settings.js
src/app/tabs/runTab/settings.js
+2
-1
modaldialog.js
src/app/ui/modaldialog.js
+3
-2
No files found.
src/app/tabs/runTab/settings.js
View file @
9a0f00f3
...
...
@@ -273,11 +273,12 @@ class SettingsUI {
var
account
=
$txOrigin
.
selectedOptions
[
0
].
value
var
promptCb
=
(
passphrase
)
=>
{
modalDialogCustom
.
promptMulti
(
signMessageDialog
,
(
message
)
=>
{
const
modal
=
modalDialogCustom
.
promptMulti
(
signMessageDialog
,
(
message
)
=>
{
this
.
settings
.
signMessage
(
message
,
account
,
passphrase
,
(
err
,
msgHash
,
signedData
)
=>
{
if
(
err
)
{
return
addTooltip
(
err
)
}
modal
.
hide
()
modalDialogCustom
.
alert
(
yo
`
<div>
<b>hash:</b><br>
...
...
src/app/ui/modaldialog.js
View file @
9a0f00f3
...
...
@@ -77,7 +77,8 @@ module.exports = (title, content, ok, cancel, focusSelector, opts) => {
}
function
hide
()
{
if
(
container
)
container
.
style
.
display
=
'none'
if
(
!
container
)
return
container
.
style
.
display
=
'none'
if
(
container
.
parentElement
)
container
.
parentElement
.
removeChild
(
container
)
container
=
null
}
...
...
@@ -119,7 +120,7 @@ module.exports = (title, content, ok, cancel, focusSelector, opts) => {
}
})
}
return
{
container
,
okListener
,
cancelListener
}
return
{
container
,
okListener
,
cancelListener
,
hide
}
}
function
html
(
opts
)
{
...
...
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