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
1c87c2ae
Commit
1c87c2ae
authored
Mar 04, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed linting error
parent
e46a5a89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
contractDropdown.js
src/app/tabs/runTab/contractDropdown.js
+4
-4
No files found.
src/app/tabs/runTab/contractDropdown.js
View file @
1c87c2ae
...
@@ -67,7 +67,7 @@ class ContractDropdownUI {
...
@@ -67,7 +67,7 @@ class ContractDropdownUI {
if
(
this
.
exEnvironment
===
'vm'
)
{
if
(
this
.
exEnvironment
===
'vm'
)
{
this
.
setCheckedState
(
false
)
this
.
setCheckedState
(
false
)
}
else
if
(
this
.
exEnvironment
===
'injected'
)
{
}
else
if
(
this
.
exEnvironment
===
'injected'
)
{
if
(
this
.
networkName
===
'Main'
)
{
if
(
this
.
networkName
===
'Main'
)
{
// select publish to ipfs by default for mainnet
// select publish to ipfs by default for mainnet
this
.
setCheckedState
(
true
)
this
.
setCheckedState
(
true
)
}
else
{
}
else
{
...
@@ -86,7 +86,7 @@ class ContractDropdownUI {
...
@@ -86,7 +86,7 @@ class ContractDropdownUI {
}
}
toggleCheckedState
()
{
toggleCheckedState
()
{
if
(
this
.
exEnvironment
===
'vm'
)
this
.
networkName
=
'VM'
if
(
this
.
exEnvironment
===
'vm'
)
this
.
networkName
=
'VM'
this
.
ipfsCheckedState
=
!
this
.
ipfsCheckedState
this
.
ipfsCheckedState
=
!
this
.
ipfsCheckedState
window
.
localStorage
.
setItem
(
`ipfs/
${
this
.
exEnvironment
}
/
${
this
.
networkName
}
`
,
this
.
ipfsCheckedState
)
window
.
localStorage
.
setItem
(
`ipfs/
${
this
.
exEnvironment
}
/
${
this
.
networkName
}
`
,
this
.
ipfsCheckedState
)
}
}
...
@@ -101,10 +101,10 @@ class ContractDropdownUI {
...
@@ -101,10 +101,10 @@ class ContractDropdownUI {
this
.
createPanel
=
yo
`<div class="
${
css
.
deployDropdown
}
"></div>`
this
.
createPanel
=
yo
`<div class="
${
css
.
deployDropdown
}
"></div>`
this
.
orLabel
=
yo
`<div class="
${
css
.
orLabel
}
">or</div>`
this
.
orLabel
=
yo
`<div class="
${
css
.
orLabel
}
">or</div>`
if
(
this
.
exEnvironment
===
'vm'
)
this
.
networkName
=
'VM'
if
(
this
.
exEnvironment
===
'vm'
)
this
.
networkName
=
'VM'
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
this
.
ipfsCheckedState
=
savedConfig
===
'true'
?
true
:
false
// eslint-disable-line
const
ipfsCheckbox
=
this
.
ipfsCheckedState
===
true
const
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
)}
>`
...
...
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