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
eef5069e
Commit
eef5069e
authored
Jul 29, 2020
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected the style of "Pubish to IPFS" checkbox
parent
451fff4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
contractDropdown.js
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
+12
-5
run-tab-styles.js
apps/remix-ide/src/app/tabs/styles/run-tab-styles.js
+3
-0
No files found.
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
View file @
eef5069e
...
...
@@ -92,16 +92,23 @@ class ContractDropdownUI {
const
savedConfig
=
window
.
localStorage
.
getItem
(
`ipfs/
${
this
.
exEnvironment
}
/
${
this
.
networkName
}
`
)
this
.
ipfsCheckedState
=
savedConfig
===
'true'
?
true
:
false
// eslint-disable-line
this
.
ipfsCheckbox
=
this
.
ipfsCheckedState
===
true
?
yo
`<input id="deployAndRunPublishToIPFS" data-id="contractDropdownIpfsCheckbox" class="mr-2" checked type="checkbox" onchange=
${
this
.
toggleCheckedState
.
bind
(
this
)}
>`
:
yo
`<input id="deployAndRunPublishToIPFS" data-id="contractDropdownIpfsCheckbox" class="mr-2" type="checkbox" onchange=
${
this
.
toggleCheckedState
.
bind
(
this
)}
>`
this
.
ipfsCheckbox
=
yo
`
<input
id="deployAndRunPublishToIPFS"
data-id="contractDropdownIpfsCheckbox"
class="form-check-input custom-control-input"
type="checkbox"
onchange=
${()
=>
this
.
toggleCheckedState
.
bind
()}
>
`
if
(
this
.
ipfsCheckedState
)
this
.
ipfsCheckbox
.
checked
=
true
this
.
deployCheckBox
=
yo
`
<div class="
mt-2 d-flex align-items-start
">
<div class="
d-flex py-1 align-items-center custom-control custom-checkbox
">
${
this
.
ipfsCheckbox
}
<label
for="deployAndRunPublishToIPFS"
class="
p-0 m-0
"
class="
m-0 form-check-label custom-control-label
${
css
.
checkboxAlign
}
"
title="Publishing the source code and ABI to IPFS facilitates source code verification and will greatly foster contract adoption (auditing, debugging, calling it, etc...)"
>
PUBLISH TO IPFS
...
...
apps/remix-ide/src/app/tabs/styles/run-tab-styles.js
View file @
eef5069e
...
...
@@ -216,6 +216,9 @@ var css = csjs`
text-align: center;
text-transform: uppercase;
}
.checkboxAlign {
padding-top: 2px;
}
`
module
.
exports
=
css
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