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
0e9d3296
Commit
0e9d3296
authored
Apr 03, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move savedConfig logic to top
parent
31b5dcce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
contractDropdown.js
src/app/tabs/runTab/contractDropdown.js
+4
-2
No files found.
src/app/tabs/runTab/contractDropdown.js
View file @
0e9d3296
...
@@ -88,6 +88,10 @@ class ContractDropdownUI {
...
@@ -88,6 +88,10 @@ class ContractDropdownUI {
this
.
atAddress
=
yo
`<button class="
${
css
.
atAddress
}
btn btn-sm btn-info" disabled id="runAndDeployAtAdressButton" onclick=
${
this
.
loadFromAddress
.
bind
(
this
)}
>At Address</button>`
this
.
atAddress
=
yo
`<button class="
${
css
.
atAddress
}
btn btn-sm btn-info" disabled id="runAndDeployAtAdressButton" onclick=
${
this
.
loadFromAddress
.
bind
(
this
)}
>At Address</button>`
this
.
atAddressButtonInput
=
yo
`<input class="
${
css
.
input
}
${
css
.
ataddressinput
}
ataddressinput form-control" placeholder="Load contract from Address" title="address of contract" oninput=
${
this
.
atAddressChanged
.
bind
(
this
)}
/>`
this
.
atAddressButtonInput
=
yo
`<input class="
${
css
.
input
}
${
css
.
ataddressinput
}
ataddressinput form-control" placeholder="Load contract from Address" title="address of contract" oninput=
${
this
.
atAddressChanged
.
bind
(
this
)}
/>`
this
.
selectContractNames
=
yo
`<select class="
${
css
.
contractNames
}
custom-select" disabled></select>`
this
.
selectContractNames
=
yo
`<select class="
${
css
.
contractNames
}
custom-select" disabled></select>`
if
(
this
.
exEnvironment
===
'vm'
)
this
.
networkName
=
'VM'
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
const
ipfsCheckbox
=
this
.
ipfsCheckedState
===
true
...
@@ -104,8 +108,6 @@ class ContractDropdownUI {
...
@@ -104,8 +108,6 @@ 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
}
mt-2">or</div>`
this
.
orLabel
=
yo
`<div class="
${
css
.
orLabel
}
mt-2">or</div>`
if
(
this
.
exEnvironment
===
'vm'
)
this
.
networkName
=
'VM'
const
savedConfig
=
window
.
localStorage
.
getItem
(
`ipfs/
${
this
.
exEnvironment
}
/
${
this
.
networkName
}
`
)
let
el
=
yo
`
let
el
=
yo
`
<div class="
${
css
.
container
}
" data-id="contractDropdownContainer">
<div class="
${
css
.
container
}
" data-id="contractDropdownContainer">
<label class="
${
css
.
settingsLabel
}
">Contract</label>
<label class="
${
css
.
settingsLabel
}
">Contract</label>
...
...
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