Commit eef5069e authored by LianaHus's avatar LianaHus

corrected the style of "Pubish to IPFS" checkbox

parent 451fff4e
...@@ -92,16 +92,23 @@ class ContractDropdownUI { ...@@ -92,16 +92,23 @@ 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
this.ipfsCheckbox = this.ipfsCheckedState === true this.ipfsCheckbox = yo`
? yo`<input id="deployAndRunPublishToIPFS" data-id="contractDropdownIpfsCheckbox" class="mr-2" checked type="checkbox" onchange=${this.toggleCheckedState.bind(this)} >` <input
: yo`<input id="deployAndRunPublishToIPFS" data-id="contractDropdownIpfsCheckbox" class="mr-2" type="checkbox" onchange=${this.toggleCheckedState.bind(this)} >` 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` 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} ${this.ipfsCheckbox}
<label <label
for="deployAndRunPublishToIPFS" 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...)" 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 PUBLISH TO IPFS
......
...@@ -216,6 +216,9 @@ var css = csjs` ...@@ -216,6 +216,9 @@ var css = csjs`
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
} }
.checkboxAlign {
padding-top: 2px;
}
` `
module.exports = css module.exports = css
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment