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
a64e75b6
Commit
a64e75b6
authored
Apr 23, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error thrown in console from document.getElementById
parent
4d5159fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
contractDropdown.js
src/app/tabs/runTab/contractDropdown.js
+3
-3
No files found.
src/app/tabs/runTab/contractDropdown.js
View file @
a64e75b6
...
@@ -71,7 +71,7 @@ class ContractDropdownUI {
...
@@ -71,7 +71,7 @@ class ContractDropdownUI {
setCheckedState
(
value
)
{
setCheckedState
(
value
)
{
value
=
value
===
'true'
?
true
:
value
===
'false'
?
false
:
value
value
=
value
===
'true'
?
true
:
value
===
'false'
?
false
:
value
this
.
ipfsCheckedState
=
value
this
.
ipfsCheckedState
=
value
document
.
getElementById
(
'deployAndRunPublishToIPFS'
)
.
checked
=
value
if
(
this
.
ipfsCheckbox
)
this
.
ipfsCheckbox
.
checked
=
value
}
}
toggleCheckedState
()
{
toggleCheckedState
()
{
...
@@ -92,13 +92,13 @@ class ContractDropdownUI {
...
@@ -92,13 +92,13 @@ class ContractDropdownUI {
const
savedConfig
=
window
.
localStorage
.
getItem
(
`ipfs/
${
this
.
exEnvironment
}
/
${
this
.
networkName
}
`
)
const
savedConfig
=
window
.
localStorage
.
getItem
(
`ipfs/
${
this
.
exEnvironment
}
/
${
this
.
networkName
}
`
)
this
.
ipfsCheckedState
=
savedConfig
===
'true'
?
true
:
false
// eslint-disable-line
this
.
ipfsCheckedState
=
savedConfig
===
'true'
?
true
:
false
// eslint-disable-line
const
ipfsCheckbox
=
this
.
ipfsCheckedState
===
true
this
.
ipfsCheckbox
=
this
.
ipfsCheckedState
===
true
?
yo
`<input id="deployAndRunPublishToIPFS" class="mr-2" checked type="checkbox" onchange=
${
this
.
toggleCheckedState
.
bind
(
this
)}
>`
?
yo
`<input id="deployAndRunPublishToIPFS" class="mr-2" checked type="checkbox" onchange=
${
this
.
toggleCheckedState
.
bind
(
this
)}
>`
:
yo
`<input id="deployAndRunPublishToIPFS" class="mr-2" type="checkbox" onchange=
${
this
.
toggleCheckedState
.
bind
(
this
)}
>`
:
yo
`<input id="deployAndRunPublishToIPFS" class="mr-2" type="checkbox" onchange=
${
this
.
toggleCheckedState
.
bind
(
this
)}
>`
this
.
deployCheckBox
=
yo
`
this
.
deployCheckBox
=
yo
`
<div class="mt-2 d-flex align-items-start">
<div class="mt-2 d-flex align-items-start">
${
ipfsCheckbox
}
${
this
.
ipfsCheckbox
}
<label
<label
for="deployAndRunPublishToIPFS"
for="deployAndRunPublishToIPFS"
class="p-0 m-0"
class="p-0 m-0"
...
...
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